diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2016-12-28 06:52:36 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-26 02:24:44 -0500 |
commit | 7959835473173638527f3d294fcccb1b1697bd92 (patch) | |
tree | 14dfbaf3477e39085b0cf1b86d1a84668488b9a4 | |
parent | 16236802bfecb1082144a48b7d6fa60997824662 (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>
-rw-r--r-- | drivers/devfreq/exynos-bus.c | 2 |
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: | |||
498 | if (IS_ERR(bus->devfreq)) { | 498 | if (IS_ERR(bus->devfreq)) { |
499 | dev_err(dev, | 499 | dev_err(dev, |
500 | "failed to add devfreq dev with passive governor\n"); | 500 | "failed to add devfreq dev with passive governor\n"); |
501 | ret = -EPROBE_DEFER; | 501 | ret = PTR_ERR(bus->devfreq); |
502 | goto err; | 502 | goto err; |
503 | } | 503 | } |
504 | 504 | ||