浏览代码

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>
Chanwoo Choi 8 年之前
父节点
当前提交
32dd773169
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/devfreq/exynos-bus.c

+ 1 - 1
drivers/devfreq/exynos-bus.c

@@ -497,7 +497,7 @@ passive:
 	if (IS_ERR(bus->devfreq)) {
 	if (IS_ERR(bus->devfreq)) {
 		dev_err(dev,
 		dev_err(dev,
 			"failed to add devfreq dev with passive governor\n");
 			"failed to add devfreq dev with passive governor\n");
-		ret = -EPROBE_DEFER;
+		ret = PTR_ERR(bus->devfreq);
 		goto err;
 		goto err;
 	}
 	}