From: Pierrick Hascoet Date: Mon, 18 Mar 2013 16:04:45 +0000 (+0100) Subject: arc: fix dma_address assignment during dma_map_sg() X-Git-Tag: upstream/snapshot3+hdmi~5437^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2105fd550ca7dbdd490934f487852c2a399b20cf;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git arc: fix dma_address assignment during dma_map_sg() Signed-off-by: Pierrick Hascoet Signed-off-by: Vineet Gupta --- diff --git a/arch/arc/include/asm/dma-mapping.h b/arch/arc/include/asm/dma-mapping.h index 31f77ae..45b8e0c 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;