Skip to content

Commit 4040394

Browse files
committed
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>
1 parent ef60abb commit 4040394

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

‎drivers/regulator/core.c‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,13 +1281,8 @@ static struct regulator *_regulator_get(struct device *dev, const char *id,
12811281
* even if it isn't hooked up and just provide a dummy.
12821282
*/
12831283
if (has_full_constraints && allow_dummy) {
1284-
/*
1285-
* Log the substitution if regulator configuration is
1286-
* not complete to help development.
1287-
*/
1288-
if (!has_full_constraints)
1289-
pr_warn("%s supply %s not found, using dummy regulator\n",
1290-
devname, id);
1284+
pr_warn("%s supply %s not found, using dummy regulator\n",
1285+
devname, id);
12911286

12921287
rdev = dummy_regulator_rdev;
12931288
goto found;

0 commit comments

Comments
 (0)