From: Al Viro Date: Sat, 27 Oct 2007 18:23:30 +0000 (+0100) Subject: scatterlist fallout: frv X-Git-Tag: v2.6.24-rc2~125 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e6a76b8bb814d0e53473ebe55d4fa18ba89ce77;p=platform%2Fkernel%2Flinux-3.10.git scatterlist fallout: frv Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- diff --git a/arch/frv/mb93090-mb00/pci-dma.c b/arch/frv/mb93090-mb00/pci-dma.c index 671ce1e8..662f7b12 100644 --- a/arch/frv/mb93090-mb00/pci-dma.c +++ b/arch/frv/mb93090-mb00/pci-dma.c @@ -15,6 +15,7 @@ #include #include #include +#include #include void *dma_alloc_coherent(struct device *hwdev, size_t size, dma_addr_t *dma_handle, gfp_t gfp) @@ -86,7 +87,7 @@ int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, dampr2 = __get_DAMPR(2); for (i = 0; i < nents; i++) { - vaddr = kmap_atomic(sg[i].page, __KM_CACHE); + vaddr = kmap_atomic(sg_page(&sg[i]), __KM_CACHE); frv_dcache_writeback((unsigned long) vaddr, (unsigned long) vaddr + PAGE_SIZE);