summaryrefslogtreecommitdiffstats
path: root/drivers/dma/k3dma.c
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2013-10-16 17:20:09 +0200
committerVinod Koul <vinod.koul@intel.com>2013-10-25 07:46:07 +0200
commitbd2c348e569f855f22331f351d1f0c6578cee4fb (patch)
treecd8694efcc0a95b657c8ddbd5675374e33a63f94 /drivers/dma/k3dma.c
parentdmaengine: iop: use DMA_COMPLETE for dma completion status (diff)
downloadlinux-bd2c348e569f855f22331f351d1f0c6578cee4fb.tar.xz
linux-bd2c348e569f855f22331f351d1f0c6578cee4fb.zip
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/k3dma.c')
-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);