summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorPierrick Hascoet <pierrick.hascoet@abilis.com>2013-03-18 17:04:45 +0100
committerVineet Gupta <vgupta@synopsys.com>2013-03-19 15:34:53 +0530
commit2105fd550ca7dbdd490934f487852c2a399b20cf (patch)
tree0841df6071feb5119c6c29d24be5be80f693066b /arch
parenta37b2dc52b88ccd926099d852eae1bb324bc92eb (diff)
downloadlinux-stable-2105fd550ca7dbdd490934f487852c2a399b20cf.tar.gz
linux-stable-2105fd550ca7dbdd490934f487852c2a399b20cf.tar.bz2
linux-stable-2105fd550ca7dbdd490934f487852c2a399b20cf.zip
arc: fix dma_address assignment during dma_map_sg()
Signed-off-by: Pierrick Hascoet <pierrick.hascoet@abilis.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arc/include/asm/dma-mapping.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arc/include/asm/dma-mapping.h b/arch/arc/include/asm/dma-mapping.h
index 31f77aec0823..45b8e0cea176 100644
--- a/arch/arc/include/asm/dma-mapping.h
+++ b/arch/arc/include/asm/dma-mapping.h
@@ -126,7 +126,7 @@ dma_map_sg(struct device *dev, struct scatterlist *sg,
int i;
for_each_sg(sg, s, nents, i)
- sg->dma_address = dma_map_page(dev, sg_page(s), s->offset,
+ s->dma_address = dma_map_page(dev, sg_page(s), s->offset,
s->length, dir);
return nents;