[PATCH 03/13] dmaengine: mxs-dma: Fix missing return value from of_dma_controller_register()
Frank Li
Frank.Li at nxp.com
Wed Jan 14 14:33:15 PST 2026
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 at nxp.com>
---
drivers/dma/mxs-dma.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c
index c7e535c91469f0d819d6fe7465725736dc6128d8..dbc8747de591cc83e39ef873633418f41b5ea982 100644
--- a/drivers/dma/mxs-dma.c
+++ b/drivers/dma/mxs-dma.c
@@ -825,6 +825,7 @@ static int mxs_dma_probe(struct platform_device *pdev)
if (ret) {
dev_err(dev,
"failed to register controller\n");
+ return ret;
}
dev_info(mxs_dma->dma_device.dev, "initialized\n");
--
2.34.1
More information about the linux-arm-kernel
mailing list