]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
PM / devfreq: Fix return value in devfreq_remove_governor()
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 21 Nov 2012 05:06:14 +0000 (10:36 +0530)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 26 Nov 2012 10:17:50 +0000 (19:17 +0900)
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>
drivers/devfreq/devfreq.c

index ac4334fac2c6e6c72d36e54112ff5df0bdd85be5..34c00c53611f452bc01c47ea728f3d182e6eb2a0 100644 (file)
@@ -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) {