提交 f9c08e2a 编写于 作者: S Sachin Kamat 提交者: MyungJoo Ham

PM / devfreq: Fix return value in devfreq_remove_governor()

Use the value obtained from the function instead of -EINVAL.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NMyungJoo Ham <myungjoo.ham@samsung.com>
上级 b9e1c8e8
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册