aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/exynos-cpufreq.c
diff options
context:
space:
mode:
authorManish Badarkhe <badarkhe.manish@gmail.com>2013-10-09 11:13:37 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-10-16 18:43:48 -0400
commit006454ae779d5d3f6ac518f0903475a5142bef5b (patch)
treef037c94494ac9447b411a15227a8ac06c82da59e /drivers/cpufreq/exynos-cpufreq.c
parent7b6f38f09ebb4b88e8ed7740bcbcc08a8882bbb7 (diff)
exynos-cpufreq: fix false return check from "regulator_set_voltage"
Currently, code checks false return value from "regulator_set_voltage" to show failure message. Modify the code to check proper return value from "regulator_set_voltage". Signed-off-by: Manish Badarkhe <badarkhe.manish@gmail.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/exynos-cpufreq.c')
-rw-r--r--drivers/cpufreq/exynos-cpufreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/exynos-cpufreq.c b/drivers/cpufreq/exynos-cpufreq.c
index b96fcc847636..3e4af676f43d 100644
--- a/drivers/cpufreq/exynos-cpufreq.c
+++ b/drivers/cpufreq/exynos-cpufreq.c
@@ -135,7 +135,7 @@ post_notify:
135 if ((freqs.new < freqs.old) || 135 if ((freqs.new < freqs.old) ||
136 ((freqs.new > freqs.old) && safe_arm_volt)) { 136 ((freqs.new > freqs.old) && safe_arm_volt)) {
137 /* down the voltage after frequency change */ 137 /* down the voltage after frequency change */
138 regulator_set_voltage(arm_regulator, arm_volt, 138 ret = regulator_set_voltage(arm_regulator, arm_volt,
139 arm_volt); 139 arm_volt);
140 if (ret) { 140 if (ret) {
141 pr_err("%s: failed to set cpu voltage to %d\n", 141 pr_err("%s: failed to set cpu voltage to %d\n",