Skip to content

Commit

Permalink
PM / devfreq: Fix return value in devfreq_remove_governor()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and MyungJoo Ham committed Nov 26, 2012
1 parent b9e1c8e commit f9c08e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/devfreq/devfreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f9c08e2

Please sign in to comment.