diff options
| author | Chanwoo Choi <cw00.choi@samsung.com> | 2016-12-28 06:52:36 -0500 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-01-02 18:21:45 -0500 |
| commit | 32dd7731699765f21dbe6df9020e613d4ed73fc3 (patch) | |
| tree | fdcf75c6c6e2d8dec72beb411472f02c050b1f95 | |
| parent | 73613b16cb5c5d5a659fc8832eff99eead3f9afb (diff) | |
PM / devfreq: exynos-bus: Fix the wrong return value
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>
| -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 a8ed7792ece2..9af86f46fbec 100644 --- a/drivers/devfreq/exynos-bus.c +++ b/drivers/devfreq/exynos-bus.c | |||
| @@ -497,7 +497,7 @@ passive: | |||
| 497 | if (IS_ERR(bus->devfreq)) { | 497 | if (IS_ERR(bus->devfreq)) { |
| 498 | dev_err(dev, | 498 | dev_err(dev, |
| 499 | "failed to add devfreq dev with passive governor\n"); | 499 | "failed to add devfreq dev with passive governor\n"); |
| 500 | ret = -EPROBE_DEFER; | 500 | ret = PTR_ERR(bus->devfreq); |
| 501 | goto err; | 501 | goto err; |
| 502 | } | 502 | } |
| 503 | 503 | ||
