Skip to contentSkip to conversation

PM/devfreq: Fix return value in devfreq_remove_governor()

PATCH MyungJoo Ham 1 participant 1 message Nov 21, 2012

lore
Share & tools
lore

MyungJoo Ham

author Acked-by
#0 lore raw
Quoted 3 lines

Use the value obtained from the function instead of -EINVAL.

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
index 83c2129..2bd9ab0 100644
@@ -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��� �띠�◀?뻀�