summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2013-10-16 10:06:28 +0200
committerVinod Koul <vinod.koul@intel.com>2013-10-25 07:45:57 +0200
commited83c0c8c11b1c9583f29098a3ac906d9a19fe70 (patch)
tree6745bef33db008ef7fb79e6752d859ff5746e0f7
parentdmaengine: coh901318: use DMA_COMPLETE for dma completion status (diff)
downloadlinux-ed83c0c8c11b1c9583f29098a3ac906d9a19fe70.tar.xz
linux-ed83c0c8c11b1c9583f29098a3ac906d9a19fe70.zip
dmaengine: cppi41: use DMA_COMPLETE for dma completion status
Acked-by: Dan Williams <dan.j.williams@intel.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r--drivers/dma/cppi41.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/cppi41.c b/drivers/dma/cppi41.c
index 167c0223ae9e..278b3058919a 100644
--- a/drivers/dma/cppi41.c
+++ b/drivers/dma/cppi41.c
@@ -353,7 +353,7 @@ static enum dma_status cppi41_dma_tx_status(struct dma_chan *chan,
/* lock */
ret = dma_cookie_status(chan, cookie, txstate);
- if (txstate && ret == DMA_SUCCESS)
+ if (txstate && ret == DMA_COMPLETE)
txstate->residue = c->residue;
/* unlock */