aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinod Koul <[email protected]>2013-10-16 20:50:09 +0530
committerVinod Koul <[email protected]>2013-10-25 11:16:07 +0530
commitbd2c348e569f855f22331f351d1f0c6578cee4fb (patch)
treecd8694efcc0a95b657c8ddbd5675374e33a63f94
parent9f571502d8327db60af8e7dec39fafc3397cedd1 (diff)
dmaengine: k3dma: use DMA_COMPLETE for dma completion status
Acked-by: Dan Williams <[email protected]> Acked-by: Linus Walleij <[email protected]> Acked-by: Zhangfei Gao <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
-rw-r--r--drivers/dma/k3dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/k3dma.c b/drivers/dma/k3dma.c
index da430623fbc4..e26075408e9b 100644
--- a/drivers/dma/k3dma.c
+++ b/drivers/dma/k3dma.c
@@ -344,7 +344,7 @@ static enum dma_status k3_dma_tx_status(struct dma_chan *chan,
size_t bytes = 0;
ret = dma_cookie_status(&c->vc.chan, cookie, state);
- if (ret == DMA_SUCCESS)
+ if (ret == DMA_COMPLETE)
return ret;
spin_lock_irqsave(&c->vc.lock, flags);