forked from luck/tmp_suning_uos_patched
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: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
This commit is contained in:
parent
a4e49c9bc9
commit
8327b830f2
|
@ -193,9 +193,9 @@ get_static_power(struct devfreq_cooling_device *dfc, unsigned long freq)
|
|||
dev_pm_opp_put(opp);
|
||||
|
||||
if (voltage == 0) {
|
||||
dev_warn_ratelimited(dev,
|
||||
"Failed to get voltage for frequency %lu: %ld\n",
|
||||
freq, IS_ERR(opp) ? PTR_ERR(opp) : 0);
|
||||
dev_err_ratelimited(dev,
|
||||
"Failed to get voltage for frequency %lu: %ld\n",
|
||||
freq, IS_ERR(opp) ? PTR_ERR(opp) : 0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user