Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8327b830 authored by Viresh Kumar's avatar Viresh Kumar Committed by Zhang Rui
Browse files

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: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
parent a4e49c9b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -193,7 +193,7 @@ get_static_power(struct devfreq_cooling_device *dfc, unsigned long freq)
	dev_pm_opp_put(opp);

	if (voltage == 0) {
		dev_warn_ratelimited(dev,
		dev_err_ratelimited(dev,
				    "Failed to get voltage for frequency %lu: %ld\n",
				    freq, IS_ERR(opp) ? PTR_ERR(opp) : 0);
		return 0;