From: Sachin Kamat Date: Wed, 21 Nov 2012 05:06:14 +0000 (+0530) Subject: PM / devfreq: Fix return value in devfreq_remove_governor() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f9c08e2acbbed19ecafc82e4549b7040cc549216;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git PM / devfreq: Fix return value in devfreq_remove_governor() Use the value obtained from the function instead of -EINVAL. Signed-off-by: Sachin Kamat Signed-off-by: MyungJoo Ham --- diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index ac4334fac2c6..34c00c53611f 100644 --- a/drivers/devfreq/devfreq.c +++ b/drivers/devfreq/devfreq.c @@ -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) {