[PATCH v2 3/3] spi: omap2-mcspi: clean up probe return value
From: Johan Hovold
Date: Thu Apr 30 2026 - 08:03:29 EST
Return explicit zero on successful probe to clearly separate the success
and error paths and make the code more readable.
Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>
---
drivers/spi/spi-omap2-mcspi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c
index 59ebdf7edbd2..d53f98aa0aac 100644
--- a/drivers/spi/spi-omap2-mcspi.c
+++ b/drivers/spi/spi-omap2-mcspi.c
@@ -1594,7 +1594,7 @@ static int omap2_mcspi_probe(struct platform_device *pdev)
if (status < 0)
goto err_disable_rpm;
- return status;
+ return 0;
err_disable_rpm:
pm_runtime_dont_use_autosuspend(&pdev->dev);
--
2.53.0