提交 415612c1 编写于 作者: S Sachin Kamat 提交者: Vinod Koul

dmaengine: s3c24xx-dma: use DMA_COMPLETE for dma completion status

Use the recently introduced DMA_COMPLETE instead of DMA_SUCCESS.
Without this patch we get the following build error:
drivers/dma/s3c24xx-dma.c: In function ‘s3c24xx_dma_tx_status’:
drivers/dma/s3c24xx-dma.c:798:13: error: ‘DMA_SUCCESS’ undeclared
(first use in this function)
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Acked-by: NHeiko Stuebner <heiko@sntech.de>
Acked-by: NKukjin Kim <kgene@kernel.org>
Signed-off-by: NVinod Koul <vinod.koul@intel.com>
上级 6ce4eac1
......@@ -795,7 +795,7 @@ static enum dma_status s3c24xx_dma_tx_status(struct dma_chan *chan,
spin_lock_irqsave(&s3cchan->vc.lock, flags);
ret = dma_cookie_status(chan, cookie, txstate);
if (ret == DMA_SUCCESS) {
if (ret == DMA_COMPLETE) {
spin_unlock_irqrestore(&s3cchan->vc.lock, flags);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册