Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4040394e authored by Mark Brown's avatar Mark Brown
Browse files

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: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent ef60abbb
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -1281,11 +1281,6 @@ 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);