summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-rpc
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2008-12-08 19:03:58 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-12-11 14:52:43 +0000
commit9e28d7e8c5422a47db886c4104221ea165595de0 (patch)
treef4b67223b89aa5bc4d3e35374bb61fd146fa6c5c /arch/arm/mach-rpc
parentd667522fdf637ef1b425518afe11aedba80364b2 (diff)
downloadkernel-crypto-9e28d7e8c5422a47db886c4104221ea165595de0.tar.gz
kernel-crypto-9e28d7e8c5422a47db886c4104221ea165595de0.tar.xz
kernel-crypto-9e28d7e8c5422a47db886c4104221ea165595de0.zip
[ARM] dma: convert IOMD DMA to use sg_next()
... rather than incrementing the sg pointer. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-rpc')
-rw-r--r--arch/arm/mach-rpc/dma.c2
1 files changed, 1 insertions, 1 deletions
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;