Convert driver to use the new helper function for callback Signed-off-by: Dave Jiang <dave.jiang@xxxxxxxxx> --- drivers/dma/imx-sdma.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 0f6fd42..fb080a4 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -656,8 +656,9 @@ static void sdma_event_disable(struct sdma_channel *sdmac, unsigned int event) static void sdma_handle_channel_loop(struct sdma_channel *sdmac) { - if (sdmac->desc.callback) - sdmac->desc.callback(sdmac->desc.callback_param); + struct dmaengine_desc_callback cb; + + dmaengine_desc_get_callback_invoke(&sdmac->desc, &cb, NULL); } static void sdma_update_channel_loop(struct sdma_channel *sdmac) @@ -687,6 +688,7 @@ static void mxc_sdma_handle_channel_normal(struct sdma_channel *sdmac) { struct sdma_buffer_descriptor *bd; int i, error = 0; + struct dmaengine_desc_callback cb; sdmac->chn_real_count = 0; /* @@ -707,8 +709,8 @@ static void mxc_sdma_handle_channel_normal(struct sdma_channel *sdmac) sdmac->status = DMA_COMPLETE; dma_cookie_complete(&sdmac->desc); - if (sdmac->desc.callback) - sdmac->desc.callback(sdmac->desc.callback_param); + + dmaengine_desc_get_callback_invoke(&sdmac->desc, &cb, NULL); } static void sdma_tasklet(unsigned long data) -- To unsubscribe from this list: send the line "unsubscribe dmaengine" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html