From: Linus Walleij Date: Thu, 12 Apr 2012 16:12:52 +0000 (+0200) Subject: dma/ste_dma40: fix erroneous comparison X-Git-Tag: v3.4~16^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7e426da823fc7cd428b82ff2cf3615da24c73352;p=profile%2Fcommon%2Fkernel-common.git dma/ste_dma40: fix erroneous comparison 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 Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index 9417042..2ed1ac3 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -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)