diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2023-03-31 22:02:34 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2023-03-31 22:02:34 +0200 |
commit | 3df82e4201f5415f4773d4ca8f0ee5a71d5b88fa (patch) | |
tree | f9b975953f7f525991bf834a77715dac3c5ff9ac /drivers | |
parent | Merge tag 'block-6.3-2023-03-30' of git://git.kernel.dk/linux (diff) | |
parent | regulator: Handle deferred clk (diff) | |
download | linux-3df82e4201f5415f4773d4ca8f0ee5a71d5b88fa.tar.xz linux-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
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/regulator/fixed.c | 2 |
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; |