summaryrefslogtreecommitdiff
path: root/drivers/devfreq/exynos-bus.c
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2016-12-28 20:52:36 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-01-26 08:24:44 +0100
commit7959835473173638527f3d294fcccb1b1697bd92 (patch)
tree14dfbaf3477e39085b0cf1b86d1a84668488b9a4 /drivers/devfreq/exynos-bus.c
parent16236802bfecb1082144a48b7d6fa60997824662 (diff)
PM / devfreq: exynos-bus: Fix the wrong return value
commit 32dd7731699765f21dbe6df9020e613d4ed73fc3 upstream. This patch fixes the wrong return value. If devfreq driver requires the wrong and non-available governor, it is fail. So, this patch returns the error insead of -EPROBE_DEFER. Fixes: 403e0689d2a9 (PM / devfreq: exynos: Add support of bus frequency of sub-blocks using passive governor) Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/devfreq/exynos-bus.c')
-rw-r--r--drivers/devfreq/exynos-bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/devfreq/exynos-bus.c b/drivers/devfreq/exynos-bus.c
index 29866f7e6d7e..1b21bb60e797 100644
--- a/drivers/devfreq/exynos-bus.c
+++ b/drivers/devfreq/exynos-bus.c
@@ -498,7 +498,7 @@ passive:
if (IS_ERR(bus->devfreq)) {
dev_err(dev,
"failed to add devfreq dev with passive governor\n");
- ret = -EPROBE_DEFER;
+ ret = PTR_ERR(bus->devfreq);
goto err;
}