diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-11-21 00:06:14 -0500 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2012-11-26 05:17:50 -0500 |
commit | f9c08e2acbbed19ecafc82e4549b7040cc549216 (patch) | |
tree | 5419f47a393c633b8548bef134f361681cdeb9c6 /drivers/devfreq | |
parent | b9e1c8e821e7768d5b8629ad7748456af6feece3 (diff) |
PM / devfreq: Fix return value in devfreq_remove_governor()
Use the value obtained from the function instead of -EINVAL.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'drivers/devfreq')
-rw-r--r-- | drivers/devfreq/devfreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index ac4334fac2c6..34c00c53611f 100644 --- a/drivers/devfreq/devfreq.c +++ b/drivers/devfreq/devfreq.c | |||
@@ -644,7 +644,7 @@ int devfreq_remove_governor(struct devfreq_governor *governor) | |||
644 | if (IS_ERR(g)) { | 644 | if (IS_ERR(g)) { |
645 | pr_err("%s: governor %s not registered\n", __func__, | 645 | pr_err("%s: governor %s not registered\n", __func__, |
646 | governor->name); | 646 | governor->name); |
647 | err = -EINVAL; | 647 | err = PTR_ERR(g); |
648 | goto err_out; | 648 | goto err_out; |
649 | } | 649 | } |
650 | list_for_each_entry(devfreq, &devfreq_list, node) { | 650 | list_for_each_entry(devfreq, &devfreq_list, node) { |