From: Johan Hovold Date: Thu, 30 Apr 2026 12:02:00 +0000 (+0200) Subject: spi: omap2-mcspi: clean up probe return value X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=46bd1fafc494744cd099f605b364f6fbb097069e;p=thirdparty%2Flinux.git spi: omap2-mcspi: clean up probe return value 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 Link: https://patch.msgid.link/20260430120200.249323-4-johan@kernel.org Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index 59ebdf7edbd2d..d53f98aa0aacb 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);