diff options
Diffstat (limited to 'drivers/dma/imx-dma.c')
-rw-r--r-- | drivers/dma/imx-dma.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c index 9a3cbac3d695..6731f1918c55 100644 --- a/drivers/dma/imx-dma.c +++ b/drivers/dma/imx-dma.c | |||
@@ -153,16 +153,7 @@ static enum dma_status imxdma_tx_status(struct dma_chan *chan, | |||
153 | dma_cookie_t cookie, | 153 | dma_cookie_t cookie, |
154 | struct dma_tx_state *txstate) | 154 | struct dma_tx_state *txstate) |
155 | { | 155 | { |
156 | struct imxdma_channel *imxdmac = to_imxdma_chan(chan); | 156 | return dma_cookie_status(chan, cookie, txstate); |
157 | dma_cookie_t last_used; | ||
158 | enum dma_status ret; | ||
159 | |||
160 | last_used = chan->cookie; | ||
161 | |||
162 | ret = dma_async_is_complete(cookie, chan->completed_cookie, last_used); | ||
163 | dma_set_tx_state(txstate, chan->completed_cookie, last_used, 0); | ||
164 | |||
165 | return ret; | ||
166 | } | 157 | } |
167 | 158 | ||
168 | static dma_cookie_t imxdma_tx_submit(struct dma_async_tx_descriptor *tx) | 159 | static dma_cookie_t imxdma_tx_submit(struct dma_async_tx_descriptor *tx) |