]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-x86/dma-mapping_32.h
Merge git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-sched
[linux-2.6-omap-h63xx.git] / include / asm-x86 / dma-mapping_32.h
index 6a2d26cb5da641fc169be3cc9eea47fe30124448..55f01bd9e556f9c2519d90991475f9507e45f67a 100644 (file)
@@ -45,9 +45,9 @@ dma_map_sg(struct device *dev, struct scatterlist *sglist, int nents,
        WARN_ON(nents == 0 || sglist[0].length == 0);
 
        for_each_sg(sglist, sg, nents, i) {
-               BUG_ON(!sg->page);
+               BUG_ON(!sg_page(sg));
 
-               sg->dma_address = page_to_phys(sg->page) + sg->offset;
+               sg->dma_address = sg_phys(sg);
        }
 
        flush_write_buffers();