diff options
author | Hanna Hawa <hannah@marvell.com> | 2018-07-17 06:30:01 -0400 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2018-07-20 05:31:58 -0400 |
commit | 5a80aff92ad28c5e3045b542576c1d08260606db (patch) | |
tree | 693074cf78571fc485eac2b43f70211ab9543353 | |
parent | 8bbafed8dd5cfa81071b50ead5cb60367fdef3a9 (diff) |
dmaengine: mv_xor_v2: convert callback to helper function
This is in preparation of moving to a callback that provides results to the
callback for the transaction. The conversion will maintain current behavior
and the driver must convert to new callback mechanism at a later time in
order to receive results.
Signed-off-by: Hanna Hawa <hannah@marvell.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r-- | drivers/dma/mv_xor_v2.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/dma/mv_xor_v2.c b/drivers/dma/mv_xor_v2.c index e7184985b2a2..14e2a7a2e80b 100644 --- a/drivers/dma/mv_xor_v2.c +++ b/drivers/dma/mv_xor_v2.c | |||
@@ -589,9 +589,8 @@ static void mv_xor_v2_tasklet(unsigned long data) | |||
589 | */ | 589 | */ |
590 | dma_cookie_complete(&next_pending_sw_desc->async_tx); | 590 | dma_cookie_complete(&next_pending_sw_desc->async_tx); |
591 | 591 | ||
592 | if (next_pending_sw_desc->async_tx.callback) | 592 | dmaengine_desc_get_callback_invoke( |
593 | next_pending_sw_desc->async_tx.callback( | 593 | &next_pending_sw_desc->async_tx, NULL); |
594 | next_pending_sw_desc->async_tx.callback_param); | ||
595 | 594 | ||
596 | dma_descriptor_unmap(&next_pending_sw_desc->async_tx); | 595 | dma_descriptor_unmap(&next_pending_sw_desc->async_tx); |
597 | } | 596 | } |