projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
52721d9
)
Merge remote-tracking branch 'regulator/fix/core' into regulator-linus
author
Mark Brown
<broonie@kernel.org>
Fri, 24 Jul 2015 15:19:25 +0000
(16:19 +0100)
committer
Mark Brown
<broonie@kernel.org>
Fri, 24 Jul 2015 15:19:25 +0000
(16:19 +0100)
drivers/regulator/core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/core.c
b/drivers/regulator/core.c
index c9f72019bd689afbb4e51528932689dc097b191b..bb8528dfad8c8ea3f449f6d19738bfe6f1a5674b 100644
(file)
--- a/
drivers/regulator/core.c
+++ b/
drivers/regulator/core.c
@@
-1381,9
+1381,13
@@
static int regulator_resolve_supply(struct regulator_dev *rdev)
}
if (!r) {
- dev_err(dev, "Failed to resolve %s-supply for %s\n",
- rdev->supply_name, rdev->desc->name);
- return -EPROBE_DEFER;
+ if (have_full_constraints()) {
+ r = dummy_regulator_rdev;
+ } else {
+ dev_err(dev, "Failed to resolve %s-supply for %s\n",
+ rdev->supply_name, rdev->desc->name);
+ return -EPROBE_DEFER;
+ }
}
/* Recursively resolve the supply of the supply */