From: Mark Brown Date: Fri, 4 Oct 2013 10:42:53 +0000 (+0100) Subject: regulator: core: Always warn when using a dummy regulator X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=4040394e12cb1eed21d1306cacdc8a6f0464c8e2;p=deliverable%2Flinux.git 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 Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index a40055edaae4..82805e2d8a64 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;