From: Hanna Hawa Date: Tue, 17 Jul 2018 10:30:01 +0000 (+0300) Subject: dmaengine: mv_xor_v2: convert callback to helper function X-Git-Tag: for-linus-20180825~44^2~7^2~4 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=5a80aff92ad28c5e3045b542576c1d08260606db;p=linux-block.git 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 Signed-off-by: Vinod Koul --- 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) */ dma_cookie_complete(&next_pending_sw_desc->async_tx); - if (next_pending_sw_desc->async_tx.callback) - next_pending_sw_desc->async_tx.callback( - next_pending_sw_desc->async_tx.callback_param); + dmaengine_desc_get_callback_invoke( + &next_pending_sw_desc->async_tx, NULL); dma_descriptor_unmap(&next_pending_sw_desc->async_tx); }