summaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2013-10-16 20:50:09 +0530
committerVinod Koul <vinod.koul@intel.com>2013-10-25 11:16:07 +0530
commitbd2c348e569f855f22331f351d1f0c6578cee4fb (patch)
treecd8694efcc0a95b657c8ddbd5675374e33a63f94 /drivers/dma
parent9f571502d8327db60af8e7dec39fafc3397cedd1 (diff)
downloadop-kernel-dev-bd2c348e569f855f22331f351d1f0c6578cee4fb.zip
op-kernel-dev-bd2c348e569f855f22331f351d1f0c6578cee4fb.tar.gz
dmaengine: k3dma: use DMA_COMPLETE for dma completion status
Acked-by: Dan Williams <dan.j.williams@intel.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Zhangfei Gao <zhangfei.gao@linaro.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-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 da43062..e260754 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);
OpenPOWER on IntegriCloud