Skip to content

Commit 77183db

Browse files
Wolfram Sangstorulf
authored andcommitted
mmc: renesas_sdhi: disable clocks if registering regulator failed
Because the clocks were just enabled, bail out to the proper target if there are problems with the regulator. Fixes: fae80a9 ("mmc: renesas_sdhi: Add support for RZ/G3E SoC") Signed-off-by: Wolfram Sang <[email protected]> Reviewed-by: Biju Das <[email protected]> Tested-by: Biju Das <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 9078f01 commit 77183db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/renesas_sdhi_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@ int renesas_sdhi_probe(struct platform_device *pdev,
11791179
if (IS_ERR(rdev)) {
11801180
dev_err(dev, "regulator register failed err=%ld", PTR_ERR(rdev));
11811181
ret = PTR_ERR(rdev);
1182-
goto efree;
1182+
goto edisclk;
11831183
}
11841184
priv->rdev = rdev;
11851185
}

0 commit comments

Comments
 (0)