提交 4040394e 编写于 作者: M Mark Brown

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: NStephen Warren <swarren@nvidia.com>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 ef60abbb
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册