diff options
Diffstat (limited to 'drivers/dma/mpc512x_dma.c')
-rw-r--r-- | drivers/dma/mpc512x_dma.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/dma/mpc512x_dma.c b/drivers/dma/mpc512x_dma.c index c56b3fe5d3fa..0253d5aecdb1 100644 --- a/drivers/dma/mpc512x_dma.c +++ b/drivers/dma/mpc512x_dma.c | |||
@@ -439,13 +439,7 @@ static dma_cookie_t mpc_dma_tx_submit(struct dma_async_tx_descriptor *txd) | |||
439 | mpc_dma_execute(mchan); | 439 | mpc_dma_execute(mchan); |
440 | 440 | ||
441 | /* Update cookie */ | 441 | /* Update cookie */ |
442 | cookie = mchan->chan.cookie + 1; | 442 | cookie = dma_cookie_assign(txd); |
443 | if (cookie <= 0) | ||
444 | cookie = 1; | ||
445 | |||
446 | mchan->chan.cookie = cookie; | ||
447 | mdesc->desc.cookie = cookie; | ||
448 | |||
449 | spin_unlock_irqrestore(&mchan->lock, flags); | 443 | spin_unlock_irqrestore(&mchan->lock, flags); |
450 | 444 | ||
451 | return cookie; | 445 | return cookie; |