mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
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>
This commit is contained in:
parent
b9e1c8e821
commit
f9c08e2acb
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue