dma/ste_dma40: fix erroneous comparison
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 12 Apr 2012 16:12:52 +0000 (18:12 +0200)
committerVinod Koul <vinod.koul@linux.intel.com>
Mon, 23 Apr 2012 12:37:05 +0000 (18:07 +0530)
A small fallout from Vinod's conversions to dma_transfer_direction,
this small comparison was done with a dma_data_direction instead.
Fix it by comparing against the correct enum.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/ste_dma40.c

index 94170424ce29ec128e05e4f32ef927840e379723..2ed1ac3513f3d4de118d7937f40fadc202748a93 100644 (file)
@@ -2116,7 +2116,7 @@ d40_prep_sg(struct dma_chan *dchan, struct scatterlist *sg_src,
        if (sg_next(&sg_src[sg_len - 1]) == sg_src)
                desc->cyclic = true;
 
-       if (direction != DMA_NONE) {
+       if (direction != DMA_TRANS_NONE) {
                dma_addr_t dev_addr = d40_get_dev_addr(chan, direction);
 
                if (direction == DMA_DEV_TO_MEM)