Linux MultiMedia Card development
 help / color / mirror / Atom feed
* [PATCH next] mmc: renesas_sdhi: fix error code in renesas_sdhi_probe()
@ 2025-03-14 10:11 Dan Carpenter
  2025-03-14 10:15 ` Biju Das
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Dan Carpenter @ 2025-03-14 10:11 UTC (permalink / raw)
  To: Biju Das
  Cc: Wolfram Sang, Ulf Hansson, linux-mmc, linux-renesas-soc,
	linux-kernel, kernel-janitors

If devm_regulator_register() fails then propagate the error code.  Don't
return success.

Fixes: fae80a99dc03 ("mmc: renesas_sdhi: Add support for RZ/G3E SoC")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
---
 drivers/mmc/host/renesas_sdhi_core.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mmc/host/renesas_sdhi_core.c b/drivers/mmc/host/renesas_sdhi_core.c
index 396fa2816a15..fa6526be3638 100644
--- a/drivers/mmc/host/renesas_sdhi_core.c
+++ b/drivers/mmc/host/renesas_sdhi_core.c
@@ -1178,6 +1178,7 @@ int renesas_sdhi_probe(struct platform_device *pdev,
 		of_node_put(rcfg.of_node);
 		if (IS_ERR(rdev)) {
 			dev_err(dev, "regulator register failed err=%ld", PTR_ERR(rdev));
+			ret = PTR_ERR(rdev);
 			goto efree;
 		}
 		priv->rdev = rdev;
-- 
2.47.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-03-17 10:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-14 10:11 [PATCH next] mmc: renesas_sdhi: fix error code in renesas_sdhi_probe() Dan Carpenter
2025-03-14 10:15 ` Biju Das
2025-03-14 10:23 ` Geert Uytterhoeven
2025-03-14 10:23 ` Wolfram Sang
2025-03-17 10:51 ` Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox