PM/devfreq: Fix return value in devfreq_remove_governor()
MyungJoo Ham
Acked-byQuoted 3 lines
Use the value obtained from the function instead of
-EINVAL.Signed-off-by Sachin Kamat <[email protected]>
Acked-by MyungJoo Ham <[email protected]>
Both patches applied as they are obvious bugfixes. I'll send pull request with other bugfixes within days.
Quoted 27 lines
--- drivers/devfreq/devfreq.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/devfreq/devfreq.c +1
-1@@ -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) {Signature · 1 line
1.7.4.1
�淸�{.n�+돴윯돪�+%듚�깁負쪐w��{.n�+돴쪐{깸G쳺��{ay����,j�f"톒쉹��묎�z_溫(�쉸듶줷"얎�m����G쳺�◀?솳鈺�&x�~뤳턨O뺞촾퇉v�^�m����띠�◀?뻀�