diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index d85f31385b24fe9b68ae45dfe0ece4be0ecc2ceb..9888f26aa131ed15f269225bd927c48dbfb3cfc9 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -1351,7 +1351,8 @@ static struct regulator *_regulator_get(struct device *dev, const char *id, rdev = dummy_regulator_rdev; goto found; - } else { + /* Don't log an error when called from regulator_get_optional() */ + } else if (!have_full_constraints() || exclusive) { dev_err(dev, "dummy supplies not allowed\n"); }