summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2012-04-12 18:12:52 +0200
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-04-13 15:58:02 +0200
commitd317f82aaff513c3aabd0c2902b3d3e0eca1a636 (patch)
tree3bf275b37fdf58190ff6080f9d3d1d6be6231fc2
parent28f77efa84b8cb1a3c1d87c44ec449f81db20d23 (diff)
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 <linus.walleij@linaro.org>
-rw-r--r--drivers/dma/ste_dma40.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c
index 05d0fa4262d..6f618d45b2b 100644
--- a/drivers/dma/ste_dma40.c
+++ b/drivers/dma/ste_dma40.c
@@ -2081,7 +2081,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)