From: Vinod Koul Date: Wed, 16 Oct 2013 08:04:35 +0000 (+0530) Subject: dmaengine: at_hdma: use DMA_COMPLETE for dma completion status X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6d203d1e0af17c33954d3800397f32d86ff8d3cf;p=linux-beck.git dmaengine: at_hdma: use DMA_COMPLETE for dma completion status Acked-by: Dan Williams Acked-by: Linus Walleij Acked-by: Nicolas Ferre Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c index c787f38a186a..1ef74579447d 100644 --- a/drivers/dma/at_hdmac.c +++ b/drivers/dma/at_hdmac.c @@ -1102,7 +1102,7 @@ atc_tx_status(struct dma_chan *chan, int bytes = 0; ret = dma_cookie_status(chan, cookie, txstate); - if (ret == DMA_SUCCESS) + if (ret == DMA_COMPLETE) return ret; /* * There's no point calculating the residue if there's