dmaengine: PL08x: fix missed dma_transfer_direction fixup
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 25 May 2012 13:37:56 +0000 (14:37 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 1 Jul 2012 13:15:35 +0000 (14:15 +0100)
db8196df4 (dmaengine: move drivers to dma_transfer_direction) missed
fixing up the "DMA_NONE" case.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/dma/amba-pl08x.c

index 5586d9a..f3ab004 100644 (file)
@@ -1287,7 +1287,7 @@ static struct dma_async_tx_descriptor *pl08x_prep_dma_memcpy(
        }
        list_add_tail(&dsg->node, &txd->dsg_list);
 
-       txd->direction = DMA_NONE;
+       txd->direction = DMA_MEM_TO_MEM;
        dsg->src_addr = src;
        dsg->dst_addr = dest;
        dsg->len = len;