summaryrefslogtreecommitdiffstats
path: root/drivers/devfreq
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2016-12-28 20:52:36 +0900
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-01-03 00:21:45 +0100
commit32dd7731699765f21dbe6df9020e613d4ed73fc3 (patch)
treefdcf75c6c6e2d8dec72beb411472f02c050b1f95 /drivers/devfreq
parent73613b16cb5c5d5a659fc8832eff99eead3f9afb (diff)
downloadop-kernel-dev-32dd7731699765f21dbe6df9020e613d4ed73fc3.zip
op-kernel-dev-32dd7731699765f21dbe6df9020e613d4ed73fc3.tar.gz
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>
Diffstat (limited to 'drivers/devfreq')
-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 a8ed779..9af86f4 100644
--- a/drivers/devfreq/exynos-bus.c
+++ b/drivers/devfreq/exynos-bus.c
@@ -497,7 +497,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;
}
OpenPOWER on IntegriCloud