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 <johan@kernel.org>
Link: https://patch.msgid.link/20260430120200.249323-4-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Johan Hovold 2026-04-30 14:02:00 +02:00 committed by Mark Brown
parent 186fda6ee1
commit 46bd1fafc4
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -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);