From patchwork Thu Dec 15 09:30:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 9475711 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5965F60571 for ; Thu, 15 Dec 2016 09:31:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 592F7286C5 for ; Thu, 15 Dec 2016 09:31:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4C9A1286DE; Thu, 15 Dec 2016 09:31:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 06BE8286C5 for ; Thu, 15 Dec 2016 09:31:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752252AbcLOJbD (ORCPT ); Thu, 15 Dec 2016 04:31:03 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:59810 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757590AbcLOJap (ORCPT ); Thu, 15 Dec 2016 04:30:45 -0500 Received: from epcpsbgm2new.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OI7029ZYZR3AR50@mailout3.samsung.com>; Thu, 15 Dec 2016 18:30:39 +0900 (KST) X-AuditID: cbfee61b-f796f6d000004092-d5-585262bff131 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id C7.EA.16530.FB262585; Thu, 15 Dec 2016 18:30:39 +0900 (KST) Received: from localhost.localdomain ([10.113.62.212]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OI70005UZR2LRB0@mmp2.samsung.com>; Thu, 15 Dec 2016 18:30:39 +0900 (KST) From: Chanwoo Choi To: myungjoo.ham@samsung.com, kyungmin.park@samsung.com Cc: rjw@rjwysocki.net, chanwoo@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Chanwoo Choi , stable@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Kukjin Kim , Krzysztof Kozlowski , Javier Martinez Canillas Subject: [PATCH 3/3] PM / devfreq: exynos-bus: Fix the wrong return value Date: Thu, 15 Dec 2016 18:30:38 +0900 Message-id: <1481794238-5005-4-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1481794238-5005-1-git-send-email-cw00.choi@samsung.com> References: <1481794238-5005-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmphkeLIzCtJLcpLzFFi42I5/e+xoO7+pKAIgxVzDSwm3rjCYnH9y3NW izdv1zBZ9D9+zWxx/vwGdouzTW/YLS7vmsNm8bn3CKPFjPP7mCxuN65gszhz+hKrxYKNjxgd eDw2repk89jSf5fdY8vVdhaPvi2rGD0+b5ILYI1ys8lITUxJLVJIzUvOT8nMS7dVCg1x07VQ UshLzE21VYrQ9Q0JUlIoS8wpBfKMDNCAg3OAe7CSvl2CW0bnkuXsBXc4Kh6ensjewLiIvYuR k0NCwETi4tM9jBC2mMSFe+vZuhi5OIQEZjFK3Lm1C6xISOAHo8Tqa7UgNpuAlsT+FzfYQGwR AXOJXUt/gtnMAoeZJNZ3JIDYwgKeEg/2LWEFsVkEVCXm7d7K3MXIwcEr4CJx5pEhxC45iQ97 HoGN5xRwlXi38DYLxCoXiRt7H7NPYORdwMiwilEitSC5oDgpPdcoL7Vcrzgxt7g0L10vOT93 EyM4Bp5J72A8vMv9EKMAB6MSD29CQGCEEGtiWXFl7iFGCQ5mJRFetYSgCCHelMTKqtSi/Pii 0pzU4kOMpkB3TWSWEk3OB8ZnXkm8oYm5ibmxgYW5paWJkZI4b+PsZ+FCAumJJanZqakFqUUw fUwcnFINjPujEmcs94rVXCQ3Z8VM5yNRtmv2vnLZwbI3lNPwxN+JuXUsBjxqmTt5d37+c75x V3/NiszvXIYXJrqKGubcjn2+qVBgoXvXgpkZJ9xZnxrp/eXQfDLZYf3/VcIN335o2Brsmvnm wQEjNfubYd8tpTe/aHveEP1I1vjxsWiDY6qnk299VxSPdVJiKc5INNRiLipOBADD1T6RlwIA AA== X-MTR: 20000000000000000@CPGS Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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: stable@vger.kernel.org cc: linux-samsung-soc@vger.kernel.org Cc: Kukjin Kim Cc: Krzysztof Kozlowski Cc: Javier Martinez Canillas Signed-off-by: Chanwoo Choi --- 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; }