From: Frank Li <[email protected]> Replace open-coded assignments to callback and callback_param fields of struct dma_async_tx_descriptor with a call to the dmaengine_desc_set_callback() helper.
No functional change intended. Prepare make to struct dma_async_tx_descriptor private to the DMA engine. Signed-off-by: Frank Li <[email protected]> --- arch/powerpc/platforms/512x/mpc512x_lpbfifo.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/512x/mpc512x_lpbfifo.c b/arch/powerpc/platforms/512x/mpc512x_lpbfifo.c index f251e0f682620..0c1a4599e8aa3 100644 --- a/arch/powerpc/platforms/512x/mpc512x_lpbfifo.c +++ b/arch/powerpc/platforms/512x/mpc512x_lpbfifo.c @@ -260,8 +260,7 @@ static int mpc512x_lpbfifo_kick(void) ret = -ENOSPC; goto err_dma_prep; } - dma_tx->callback = mpc512x_lpbfifo_callback; - dma_tx->callback_param = NULL; + dmaengine_desc_set_callback(dma_tx, mpc512x_lpbfifo_callback, NULL, NULL); /* 3. Prepare FIFO */ out_be32(&lpbfifo.regs->enable, -- 2.43.0
