summaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-10-04 11:42:53 +0100
committerMark Brown <broonie@linaro.org>2013-10-04 11:47:15 +0100
commit4040394e12cb1eed21d1306cacdc8a6f0464c8e2 (patch)
treec1738579f8322cf50fc06805151e2ae30417b60c /drivers/regulator
parentef60abbb6b406389245225ab4acfe73f66e7d92c (diff)
downloadop-kernel-dev-4040394e12cb1eed21d1306cacdc8a6f0464c8e2.zip
op-kernel-dev-4040394e12cb1eed21d1306cacdc8a6f0464c8e2.tar.gz
regulator: core: Always warn when using a dummy regulator
This helps people spot if they have missed a supply from a device tree or equivalent data structure. Suggested-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/core.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index a40055e..82805e2 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -1281,13 +1281,8 @@ static struct regulator *_regulator_get(struct device *dev, const char *id,
* even if it isn't hooked up and just provide a dummy.
*/
if (has_full_constraints && allow_dummy) {
- /*
- * Log the substitution if regulator configuration is
- * not complete to help development.
- */
- if (!has_full_constraints)
- pr_warn("%s supply %s not found, using dummy regulator\n",
- devname, id);
+ pr_warn("%s supply %s not found, using dummy regulator\n",
+ devname, id);
rdev = dummy_regulator_rdev;
goto found;
OpenPOWER on IntegriCloud