diff options
-rw-r--r-- | drivers/dma/mmp_tdma.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/dma/mmp_tdma.c b/drivers/dma/mmp_tdma.c index 9b9366537d73..a9345d0387d8 100644 --- a/drivers/dma/mmp_tdma.c +++ b/drivers/dma/mmp_tdma.c | |||
@@ -460,7 +460,8 @@ static enum dma_status mmp_tdma_tx_status(struct dma_chan *chan, | |||
460 | { | 460 | { |
461 | struct mmp_tdma_chan *tdmac = to_mmp_tdma_chan(chan); | 461 | struct mmp_tdma_chan *tdmac = to_mmp_tdma_chan(chan); |
462 | 462 | ||
463 | dma_set_residue(txstate, tdmac->buf_len - tdmac->pos); | 463 | dma_set_tx_state(txstate, chan->completed_cookie, chan->cookie, |
464 | tdmac->buf_len - tdmac->pos); | ||
464 | 465 | ||
465 | return tdmac->status; | 466 | return tdmac->status; |
466 | } | 467 | } |