[ARM] dma: convert IOMD DMA to use sg_next()
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Mon, 8 Dec 2008 19:03:58 +0000 (19:03 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 11 Dec 2008 14:52:43 +0000 (14:52 +0000)
... rather than incrementing the sg pointer.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-rpc/dma.c

index 0163592b2af01d94e47b5abc65c0e8dda4e509c6..a5987bbed60df7078e5d78ab227bcd451acfe760 100644 (file)
@@ -67,7 +67,7 @@ static void iomd_get_next_sg(struct scatterlist *sg, struct iomd_dma *idma)
 
                if (idma->dma.sg->length == 0) {
                        if (idma->dma.sgcount > 1) {
-                               idma->dma.sg++;
+                               idma->dma.sg = sg_next(idma->dma.sg);
                                idma->dma.sgcount--;
                        } else {
                                idma->dma.sg = NULL;