dmaengine: mv_xor: convert callback to helper function
[cascardo/linux.git] / drivers / dma / mv_xor.c
index f4c9f98..f8b5e74 100644 (file)
@@ -209,10 +209,7 @@ mv_desc_run_tx_complete_actions(struct mv_xor_desc_slot *desc,
                /* call the callback (must not sleep or submit new
                 * operations to this channel)
                 */
-               if (desc->async_tx.callback)
-                       desc->async_tx.callback(
-                               desc->async_tx.callback_param);
-
+               dmaengine_desc_get_callback_invoke(&desc->async_tx, NULL);
                dma_descriptor_unmap(&desc->async_tx);
        }