]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dmaengine: mxs-dma: Fix missing return value from of_dma_controller_register()
authorFrank Li <Frank.Li@nxp.com>
Wed, 25 Feb 2026 21:41:38 +0000 (16:41 -0500)
committerVinod Koul <vkoul@kernel.org>
Mon, 9 Mar 2026 11:20:47 +0000 (12:20 +0100)
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 <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260225-mxsdma-module-v3-2-8f798b13baa6@nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/mxs-dma.c

index cfb9962417ef68e976ae03c3c6f3054dc89bd1e6..53f572b6b6fc62c6cb2496f0da281887f8fc3280 100644 (file)
@@ -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");