aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/ipu/ipu_idmac.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma/ipu/ipu_idmac.c')
-rw-r--r--drivers/dma/ipu/ipu_idmac.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/dma/ipu/ipu_idmac.c b/drivers/dma/ipu/ipu_idmac.c
index b9cef8b1701c..246a6143e4a7 100644
--- a/drivers/dma/ipu/ipu_idmac.c
+++ b/drivers/dma/ipu/ipu_idmac.c
@@ -1651,11 +1651,7 @@ static enum dma_status idmac_tx_status(struct dma_chan *chan,
1651{ 1651{
1652 struct idmac_channel *ichan = to_idmac_chan(chan); 1652 struct idmac_channel *ichan = to_idmac_chan(chan);
1653 1653
1654 if (txstate) { 1654 dma_set_tx_state(txstate, ichan->completed, chan->cookie, 0);
1655 txstate->last = ichan->completed;
1656 txstate->used = chan->cookie;
1657 txstate->residue = 0;
1658 }
1659 if (cookie != chan->cookie) 1655 if (cookie != chan->cookie)
1660 return DMA_ERROR; 1656 return DMA_ERROR;
1661 return DMA_SUCCESS; 1657 return DMA_SUCCESS;