From: Russell King Date: Mon, 8 Dec 2008 19:03:58 +0000 (+0000) Subject: [ARM] dma: convert IOMD DMA to use sg_next() X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9e28d7e8c5422a47db886c4104221ea165595de0;p=linux-2.6-omap-h63xx.git [ARM] dma: convert IOMD DMA to use sg_next() ... rather than incrementing the sg pointer. Signed-off-by: Russell King --- diff --git a/arch/arm/mach-rpc/dma.c b/arch/arm/mach-rpc/dma.c index 0163592b2af..a5987bbed60 100644 --- a/arch/arm/mach-rpc/dma.c +++ b/arch/arm/mach-rpc/dma.c @@ -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;