regulator: core: Change dummy supplies error message to a warning
authorShuah Khan <shuah.kh@samsung.com>
Thu, 20 Feb 2014 19:58:15 +0000 (12:58 -0700)
committerMark Brown <broonie@linaro.org>
Thu, 20 Feb 2014 23:35:31 +0000 (08:35 +0900)
Change "dummy supplies not allowed" error message to warning instead, as this
is a just warning message with no change to the behavior.

[Added a CC to stable since some other bug fixes cause this to come up
more frequently on PCs which is how it was noticed -- broonie]

Signed-off-by: Shuah Khan <shuah.kh@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
drivers/regulator/core.c

index b38a6b669e8cf0951a38c3cb589a589372f18d3f..74e9fb2e52e7c5bd7d45fcedbd3ed3c30ae247fe 100644 (file)
@@ -1352,7 +1352,7 @@ static struct regulator *_regulator_get(struct device *dev, const char *id,
                goto found;
        /* 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");
+               dev_warn(dev, "dummy supplies not allowed\n");
        }
 
        mutex_unlock(&regulator_list_mutex);