diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-05-27 08:14:40 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-08-05 00:02:25 -0400 |
commit | c6c732cf9ff0547430a9dedc3fcf6a93f4db54ab (patch) | |
tree | 82dda2e623b881301b742dd4c7bb0b80d5e995b5 /drivers/dma/ipu | |
parent | 0a0aee203c202e946a1e7dee3d40714dbab951a4 (diff) |
ipu_idmac: re-use dma_cookie_status()
It's better to use generic dma_cookie_status() that allows user to get standard
possible return codes independently of the DMAC driver in charge.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/ipu')
-rw-r--r-- | drivers/dma/ipu/ipu_idmac.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/dma/ipu/ipu_idmac.c b/drivers/dma/ipu/ipu_idmac.c index d39c2cd0795d..608d4a261654 100644 --- a/drivers/dma/ipu/ipu_idmac.c +++ b/drivers/dma/ipu/ipu_idmac.c | |||
@@ -1593,10 +1593,7 @@ static void idmac_free_chan_resources(struct dma_chan *chan) | |||
1593 | static enum dma_status idmac_tx_status(struct dma_chan *chan, | 1593 | static enum dma_status idmac_tx_status(struct dma_chan *chan, |
1594 | dma_cookie_t cookie, struct dma_tx_state *txstate) | 1594 | dma_cookie_t cookie, struct dma_tx_state *txstate) |
1595 | { | 1595 | { |
1596 | dma_set_tx_state(txstate, chan->completed_cookie, chan->cookie, 0); | 1596 | return dma_cookie_status(chan, cookie, txstate); |
1597 | if (cookie != chan->cookie) | ||
1598 | return DMA_ERROR; | ||
1599 | return DMA_SUCCESS; | ||
1600 | } | 1597 | } |
1601 | 1598 | ||
1602 | static int __init ipu_idmac_init(struct ipu *ipu) | 1599 | static int __init ipu_idmac_init(struct ipu *ipu) |