提交 8327b830 编写于 作者: V Viresh Kumar 提交者: Zhang Rui

thermal: devfreq_cooling: Replace dev_warn with dev_err

There isn't much the user can do on seeing this warning, as the hardware
is actually okay. dev_err suits much better here.
Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: NZhang Rui <rui.zhang@intel.com>
上级 a4e49c9b
...@@ -193,9 +193,9 @@ get_static_power(struct devfreq_cooling_device *dfc, unsigned long freq) ...@@ -193,9 +193,9 @@ get_static_power(struct devfreq_cooling_device *dfc, unsigned long freq)
dev_pm_opp_put(opp); dev_pm_opp_put(opp);
if (voltage == 0) { if (voltage == 0) {
dev_warn_ratelimited(dev, dev_err_ratelimited(dev,
"Failed to get voltage for frequency %lu: %ld\n", "Failed to get voltage for frequency %lu: %ld\n",
freq, IS_ERR(opp) ? PTR_ERR(opp) : 0); freq, IS_ERR(opp) ? PTR_ERR(opp) : 0);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册