thermal: devfreq_cooling: Replace dev_warn with dev_err
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 7 Feb 2017 04:10:02 +0000 (09:40 +0530)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 13 Sep 2017 10:24:01 +0000 (19:24 +0900)
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>
drivers/thermal/devfreq_cooling.c

index d5378291ca19aad90268681ed348aa43026937d4..444dac06f0185b11249c9e58c7ea6bee4663eec9 100644 (file)
@@ -196,9 +196,9 @@ get_static_power(struct devfreq_cooling_device *dfc, unsigned long freq)
        rcu_read_unlock();
 
        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;
        }