linux-samsung-soc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 3/3] PM / devfreq: exynos-bus: Fix the wrong return value
       [not found] ` <CGME20161228115241epcas5p4dbe02a82279d6aad8dac1a2cc0fdc9cb@epcas5p4.samsung.com>
@ 2016-12-28 11:52   ` Chanwoo Choi
  0 siblings, 0 replies; only message in thread
From: Chanwoo Choi @ 2016-12-28 11:52 UTC (permalink / raw)
  To: myungjoo.ham, kyungmin.park
  Cc: chanwoo, rjw, linux-pm, linux-kernel, Chanwoo Choi, Kukjin Kim,
	Krzysztof Kozlowski, Javier Martinez Canillas, linux-samsung-soc,
	stable

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")
Cc: Kukjin Kim <kgene@kernel.org>
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Javier Martinez Canillas <javier@osg.samsung.com>
Cc: linux-samsung-soc@vger.kernel.org
Cc: stable@vger.kernel.org
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
---
 drivers/devfreq/exynos-bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 @@ static int exynos_bus_probe(struct platform_device *pdev)
 	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;
 	}
 
-- 
1.9.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-12-28 11:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1482925956-19044-1-git-send-email-cw00.choi@samsung.com>
     [not found] ` <CGME20161228115241epcas5p4dbe02a82279d6aad8dac1a2cc0fdc9cb@epcas5p4.samsung.com>
2016-12-28 11:52   ` [PATCH v2 3/3] PM / devfreq: exynos-bus: Fix the wrong return value Chanwoo Choi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).