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)
committerZhang Rui <rui.zhang@intel.com>
Mon, 13 Mar 2017 02:06:36 +0000 (10:06 +0800)
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 4793fc7b06dd3f200335b3b5515f0e44a87966dd..e99d0e026a53cac52d5e5a83f47ea8ade4b75294 100644 (file)
@@ -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;
        }