aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2017-07-11 23:51:49 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-07-15 20:24:33 -0400
commit5b60697cd89cf5a438b2984e11859228e5ec1c6b (patch)
treedf85a540a8422b23bb73ed6a821233ddb0567bfb
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877 (diff)
PM / OPP: OF: Use pr_debug() instead of pr_err() while adding OPP table
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>
-rw-r--r--drivers/base/power/opp/of.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/base/power/opp/of.c b/drivers/base/power/opp/of.c
index 57eec1ca0569..6f0497b377c7 100644
--- a/drivers/base/power/opp/of.c
+++ b/drivers/base/power/opp/of.c
@@ -539,8 +539,12 @@ int dev_pm_opp_of_cpumask_add_table(const struct cpumask *cpumask)
539 539
540 ret = dev_pm_opp_of_add_table(cpu_dev); 540 ret = dev_pm_opp_of_add_table(cpu_dev);
541 if (ret) { 541 if (ret) {
542 pr_err("%s: couldn't find opp table for cpu:%d, %d\n", 542 /*
543 __func__, cpu, ret); 543 * OPP may get registered dynamically, don't print error
544 * message here.
545 */
546 pr_debug("%s: couldn't find opp table for cpu:%d, %d\n",
547 __func__, cpu, ret);
544 548
545 /* Free all other OPPs */ 549 /* Free all other OPPs */
546 dev_pm_opp_of_cpumask_remove_table(cpumask); 550 dev_pm_opp_of_cpumask_remove_table(cpumask);