[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1334247172-17388-1-git-send-email-linus.walleij@stericsson.com>
Date: Thu, 12 Apr 2012 18:12:52 +0200
From: Linus Walleij <linus.walleij@...ricsson.com>
To: Vinod Koul <vinod.koul@...el.com>
Cc: <linux-kernel@...r.kernel.org>,
Dan Williams <dan.j.williams@...el.com>,
Lee Jones <lee.jones@...aro.org>,
Philippe Langlais <philippe.langlais@...aro.org>,
Linus Walleij <linus.walleij@...aro.org>
Subject: [PATCH 2/2] dma/ste_dma40: fix erroneous comparison
From: Linus Walleij <linus.walleij@...aro.org>
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@...aro.org>
---
drivers/dma/ste_dma40.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c
index 94d760e..f591194 100644
--- a/drivers/dma/ste_dma40.c
+++ b/drivers/dma/ste_dma40.c
@@ -2071,7 +2071,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)
--
1.7.9.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists