[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>
This commit is contained in:
Russell King 2008-12-08 19:03:58 +00:00 committed by Russell King
parent d667522fdf
commit 9e28d7e8c5
1 changed files with 1 additions and 1 deletions

View 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;