aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2017-07-12 09:21:49 +0530
committerPavel <pavel@ucw.cz>2019-06-23 12:14:16 +0200
commit76e0fe1ec0871e2828ac83f31efcd74ce233e4cf (patch)
tree213c3e8e914ade90e1fb8f2f540b9b940003483d
parentb374152f34bac50b32326d61329bf474bc3a5874 (diff)
downloadlinux-cip-76e0fe1ec0871e2828ac83f31efcd74ce233e4cf.tar.gz
PM / OPP: OF: Use pr_debug() instead of pr_err() while adding OPP table
commit 5b60697cd89cf5a438b2984e11859228e5ec1c6b upstream. Some platforms add the OPPs dynamically from platform specific drivers instead of getting them statically from DT. The cpufreq-dt driver already ignores the return value of dev_pm_opp_of_cpumask_add_table() to not error out for such cases, but we still end up printing error message from that routine. That's not nice. Convert the print message to use pr_debug() instead. Reported-by: Mason <slash.tmp@free.fr> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> [bwh: Backported to 4.4: adjust filename] Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
-rw-r--r--drivers/base/power/opp/cpu.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/base/power/opp/cpu.c b/drivers/base/power/opp/cpu.c
index 7b445e88a0d559..1a2e8f260b060e 100644
--- a/drivers/base/power/opp/cpu.c
+++ b/drivers/base/power/opp/cpu.c
@@ -198,8 +198,12 @@ int dev_pm_opp_of_cpumask_add_table(cpumask_var_t cpumask)
ret = dev_pm_opp_of_add_table(cpu_dev);
if (ret) {
- pr_err("%s: couldn't find opp table for cpu:%d, %d\n",
- __func__, cpu, ret);
+ /*
+ * OPP may get registered dynamically, don't print error
+ * message here.
+ */
+ pr_debug("%s: couldn't find opp table for cpu:%d, %d\n",
+ __func__, cpu, ret);
/* Free all other OPPs */
dev_pm_opp_of_cpumask_remove_table(cpumask);