projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9e1c8e
)
PM / devfreq: Fix return value in devfreq_remove_governor()
author
Sachin Kamat
<sachin.kamat@linaro.org>
Wed, 21 Nov 2012 05:06:14 +0000
(10:36 +0530)
committer
MyungJoo Ham
<myungjoo.ham@samsung.com>
Mon, 26 Nov 2012 10:17:50 +0000
(19:17 +0900)
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>
drivers/devfreq/devfreq.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/devfreq/devfreq.c
b/drivers/devfreq/devfreq.c
index ac4334fac2c6e6c72d36e54112ff5df0bdd85be5..34c00c53611f452bc01c47ea728f3d182e6eb2a0 100644
(file)
--- a/
drivers/devfreq/devfreq.c
+++ b/
drivers/devfreq/devfreq.c
@@
-644,7
+644,7
@@
int devfreq_remove_governor(struct devfreq_governor *governor)
if (IS_ERR(g)) {
pr_err("%s: governor %s not registered\n", __func__,
governor->name);
- err =
-EINVAL
;
+ err =
PTR_ERR(g)
;
goto err_out;
}
list_for_each_entry(devfreq, &devfreq_list, node) {