summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2023-03-31 13:02:34 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2023-03-31 13:02:34 -0700
commit3df82e4201f5415f4773d4ca8f0ee5a71d5b88fa (patch)
treef9b975953f7f525991bf834a77715dac3c5ff9ac
parent81409e5e483cbdf6930e24c8556a289266fea39f (diff)
parent02bcba0b9f9da706d5bd1e8cbeb83493863e17b5 (diff)
downloadlwn-3df82e4201f5415f4773d4ca8f0ee5a71d5b88fa.tar.gz
lwn-3df82e4201f5415f4773d4ca8f0ee5a71d5b88fa.zip
Merge tag 'regulator-fix-v6.3-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
Pull regulator fix from Mark Brown: "Deferred probe fix for v6.3. This fixes a rarely triggered issue where we would treat probe deferral for clocks as a fatal error in the fixed regulator, causing it to fail to retry when it should" * tag 'regulator-fix-v6.3-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: regulator: Handle deferred clk
-rw-r--r--drivers/regulator/fixed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c
index 2a9867abba20..e6724a229d23 100644
--- a/drivers/regulator/fixed.c
+++ b/drivers/regulator/fixed.c
@@ -215,7 +215,7 @@ static int reg_fixed_voltage_probe(struct platform_device *pdev)
drvdata->enable_clock = devm_clk_get(dev, NULL);
if (IS_ERR(drvdata->enable_clock)) {
dev_err(dev, "Can't get enable-clock from devicetree\n");
- return -ENOENT;
+ return PTR_ERR(drvdata->enable_clock);
}
} else if (drvtype && drvtype->has_performance_state) {
drvdata->desc.ops = &fixed_voltage_domain_ops;