diff options
Diffstat (limited to 'arch/arm/common')
-rw-r--r-- | arch/arm/common/dmabounce.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/common/dmabounce.c b/arch/arm/common/dmabounce.c index 44ab0dad4035..9d371e476552 100644 --- a/arch/arm/common/dmabounce.c +++ b/arch/arm/common/dmabounce.c | |||
@@ -442,7 +442,7 @@ dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, | |||
442 | BUG_ON(dir == DMA_NONE); | 442 | BUG_ON(dir == DMA_NONE); |
443 | 443 | ||
444 | for (i = 0; i < nents; i++, sg++) { | 444 | for (i = 0; i < nents; i++, sg++) { |
445 | struct page *page = sg->page; | 445 | struct page *page = sg_page(sg); |
446 | unsigned int offset = sg->offset; | 446 | unsigned int offset = sg->offset; |
447 | unsigned int length = sg->length; | 447 | unsigned int length = sg->length; |
448 | void *ptr = page_address(page) + offset; | 448 | void *ptr = page_address(page) + offset; |