From: Frank Li Date: Wed, 25 Feb 2026 21:41:38 +0000 (-0500) Subject: dmaengine: mxs-dma: Fix missing return value from of_dma_controller_register() X-Git-Tag: v7.1-rc1~109^2~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ab2bf6d4c0a0152907b18d25c1b118ea5ea779df;p=thirdparty%2Fkernel%2Flinux.git dmaengine: mxs-dma: Fix missing return value from of_dma_controller_register() Propagate the return value of of_dma_controller_register() in probe() instead of ignoring it. Fixes: a580b8c5429a6 ("dmaengine: mxs-dma: add dma support for i.MX23/28") Signed-off-by: Frank Li Link: https://patch.msgid.link/20260225-mxsdma-module-v3-2-8f798b13baa6@nxp.com Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c index cfb9962417ef6..53f572b6b6fc6 100644 --- a/drivers/dma/mxs-dma.c +++ b/drivers/dma/mxs-dma.c @@ -824,6 +824,7 @@ static int mxs_dma_probe(struct platform_device *pdev) if (ret) { dev_err(mxs_dma->dma_device.dev, "failed to register controller\n"); + return ret; } dev_info(mxs_dma->dma_device.dev, "initialized\n");