aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2017-02-06 23:10:04 -0500
committerZhang Rui <rui.zhang@intel.com>2017-03-12 22:06:47 -0400
commit9aec9082bf3c0fb83020a0f562c9cc8078ac91f1 (patch)
treef07f65006db288923e5f97d7a4d9481b4eacd8ed
parentafd1f4e0a76f0c56422af7056942f28578f1643e (diff)
thermal: cpu_cooling: Replace dev_warn with dev_err
There isn't much the user can do on seeing these warnings, 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>
-rw-r--r--drivers/thermal/cpu_cooling.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c
index 11b5ea685518..59f0bd53f329 100644
--- a/drivers/thermal/cpu_cooling.c
+++ b/drivers/thermal/cpu_cooling.c
@@ -397,9 +397,9 @@ static int get_static_power(struct cpufreq_cooling_device *cpufreq_device,
397 dev_pm_opp_put(opp); 397 dev_pm_opp_put(opp);
398 398
399 if (voltage == 0) { 399 if (voltage == 0) {
400 dev_warn_ratelimited(cpufreq_device->cpu_dev, 400 dev_err_ratelimited(cpufreq_device->cpu_dev,
401 "Failed to get voltage for frequency %lu: %ld\n", 401 "Failed to get voltage for frequency %lu: %ld\n",
402 freq_hz, IS_ERR(opp) ? PTR_ERR(opp) : 0); 402 freq_hz, IS_ERR(opp) ? PTR_ERR(opp) : 0);
403 return -EINVAL; 403 return -EINVAL;
404 } 404 }
405 405
@@ -691,9 +691,9 @@ static int cpufreq_power2state(struct thermal_cooling_device *cdev,
691 691
692 *state = cpufreq_cooling_get_level(cpu, target_freq); 692 *state = cpufreq_cooling_get_level(cpu, target_freq);
693 if (*state == THERMAL_CSTATE_INVALID) { 693 if (*state == THERMAL_CSTATE_INVALID) {
694 dev_warn_ratelimited(&cdev->device, 694 dev_err_ratelimited(&cdev->device,
695 "Failed to convert %dKHz for cpu %d into a cdev state\n", 695 "Failed to convert %dKHz for cpu %d into a cdev state\n",
696 target_freq, cpu); 696 target_freq, cpu);
697 return -EINVAL; 697 return -EINVAL;
698 } 698 }
699 699