summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2015-10-06 13:00:38 +0200
committerMark Brown <broonie@kernel.org>2015-10-06 13:00:38 +0200
commit6710f223433588af582c0e4dbecbca72a36c4594 (patch)
tree1c176df20e587e2a847a6c0371eb239f57c5b280 /drivers
parentLinux 4.3-rc4 (diff)
parentregulator: core: Handle probe deferral from DT when resolving supplies (diff)
downloadlinux-6710f223433588af582c0e4dbecbca72a36c4594.tar.xz
linux-6710f223433588af582c0e4dbecbca72a36c4594.zip
Merge remote-tracking branch 'regulator/fix/core' into regulator-linus
Diffstat (limited to 'drivers')
-rw-r--r--drivers/regulator/core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 7849187d91ae..8a34f6acc801 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -1403,6 +1403,10 @@ static int regulator_resolve_supply(struct regulator_dev *rdev)
return 0;
}
+ /* Did the lookup explicitly defer for us? */
+ if (ret == -EPROBE_DEFER)
+ return ret;
+
if (have_full_constraints()) {
r = dummy_regulator_rdev;
} else {