Message ID | 1482925956-19044-4-git-send-email-cw00.choi@samsung.com (mailing list archive) |
---|---|
State | Mainlined |
Delegated to: | Rafael Wysocki |
Headers | show
Return-Path: <linux-pm-owner@kernel.org> 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 C59B462AB0 for <patchwork-linux-pm@patchwork.kernel.org>; Wed, 28 Dec 2016 11:54:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B00DA1FF1E for <patchwork-linux-pm@patchwork.kernel.org>; Wed, 28 Dec 2016 11:54:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A319526246; Wed, 28 Dec 2016 11:54:20 +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 43D0E1FF1E for <patchwork-linux-pm@patchwork.kernel.org>; Wed, 28 Dec 2016 11:54:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751331AbcL1LyR (ORCPT <rfc822;patchwork-linux-pm@patchwork.kernel.org>); Wed, 28 Dec 2016 06:54:17 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:50401 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751353AbcL1Lxd (ORCPT <rfc822;linux-pm@vger.kernel.org>); Wed, 28 Dec 2016 06:53:33 -0500 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OIW00PNK8ZUD550@mailout3.samsung.com>; Wed, 28 Dec 2016 20:52:42 +0900 (KST) Received: from epsmges5p1.samsung.com (unknown [182.195.40.66]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20161228115242epcas1p186e2c63683ae07476306b740d53cc8f5~UaU4_O5JW1370813708epcas1p1R; Wed, 28 Dec 2016 11:52:42 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p1.samsung.com (EPCPMTA) with SMTP id 30.09.31243.987A3685; Wed, 28 Dec 2016 20:52:41 +0900 (KST) Received: from epcpsbgm2new.samsung.com (u27.gpu120.samsung.co.kr [203.254.230.27]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20161228115241epcas5p4dbe02a82279d6aad8dac1a2cc0fdc9cb~UaU4cLU5h0150601506epcas5p4R; Wed, 28 Dec 2016 11:52:41 +0000 (GMT) X-AuditID: b6c32a2c-f79ad6d000007a0b-6a-5863a7891a46 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id D2.A0.28332.987A3685; Wed, 28 Dec 2016 20:52:41 +0900 (KST) Received: from localhost.localdomain ([10.113.62.212]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OIW009GW8ZSI400@mmp1.samsung.com>; Wed, 28 Dec 2016 20:52:41 +0900 (KST) From: Chanwoo Choi <cw00.choi@samsung.com> To: myungjoo.ham@samsung.com, kyungmin.park@samsung.com Cc: chanwoo@kernel.org, rjw@rjwysocki.net, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Chanwoo Choi <cw00.choi@samsung.com>, Kukjin Kim <kgene@kernel.org>, Krzysztof Kozlowski <krzk@kernel.org>, Javier Martinez Canillas <javier@osg.samsung.com>, linux-samsung-soc@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH v2 3/3] PM / devfreq: exynos-bus: Fix the wrong return value Date: Wed, 28 Dec 2016 20:52:36 +0900 Message-id: <1482925956-19044-4-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1482925956-19044-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNKsWRmVeSWpSXmKPExsWy7bCmum7n8uQIg9f7rSwm3rjCYnH9y3NW izdv1zBZ9D9+zWxx/vwGdouzTW/YLS7vmsNm8bn3CKPFjPP7mCxuN65gszhz+hKrxYKNjxgd eDw2repk89jSf5fdY8vVdhaPvi2rGD0+b5ILYI1KtclITUxJLVJIzUvOT8nMS7dV8g6Od443 NTMw1DW0tDBXUshLzE21VXLxCdB1y8wBuk9JoSwxpxQoFJBYXKykb2dTlF9akqqQkV9cYqsU bWhopGdoYK5nZGSkZ2Ica2VkClSSkJox7fEexoI7HBUbW66yNzAuYu9i5OSQEDCR2H6ijRXC FpO4cG89WxcjF4eQwFJGibblLxkhnHYmiY2PX8J1PDk5AapqOaPErgNrWSCcH4wSO1Z+YgSp YhPQktj/4gYbiC0iYC6xa+lPsA5mgcNMEu+v/ARbKCzgIzHv4h8mEJtFQFXi4c19YHFeAVeJ 3vknmSDWyUl82PMIbDWngJvE5hdPwG6SEJjOLnH6WBNQEQeQIyux6QAzhOkisfQzP0SrsMSr 41ugrpaW+Lv0FlTrZEaJrrV/mSGcHkaJxjVH2SCqjCXuP7jHDGIzC/BJ9P5+AjWfV6KjTQii xEPi3dKl0ABzlOhY0g71/UxGiYYHU5gmMMosYGRYxSiWWlCcm55abFpgqFecmFtcmpeul5yf u4kRnLC0dHYw3lvgfYhRgINRiYc3ozE5Qog1say4MvcQowQHs5IIb9wyoBBvSmJlVWpRfnxR aU5q8SFGU2A4TWSWEk3OBybTvJJ4QxMzQxMjSyA0NzRXEuddUGEdISSQnliSmp2aWpBaBNPH xMEp1cA4I37xSZbuqeUnrpROm2aU/OKH0qvMgzx3ahIZez+vebzAQlFySon588iTX0/9ney/ tv+c+NwoR//F87eU3p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fdc9cb X-Msg-Generator: CA X-Sender-IP: 203.254.230.27 X-Local-Sender: =?UTF-8?B?7LWc7LCs7JqwG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbUzUo7LGF7J6EKS9DaGFuZ2UgQWdlbnQ=?= X-Global-Sender: =?UTF-8?B?Q2hhbndvbyBDaG9pG1RpemVuIFBsYXRmb3JtIExhYi4bU2Ft?= =?UTF-8?B?c3VuZyBFbGVjdHJvbmljcxtTNS9TZW5pb3IgRW5naW5lZXI=?= X-Sender-Code: =?UTF-8?B?QzEwG1NUQUYbQzEwVjgxMTE=?= CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20161228115241epcas5p4dbe02a82279d6aad8dac1a2cc0fdc9cb X-RootMTR: 20161228115241epcas5p4dbe02a82279d6aad8dac1a2cc0fdc9cb References: <1482925956-19044-1-git-send-email-cw00.choi@samsung.com> <CGME20161228115241epcas5p4dbe02a82279d6aad8dac1a2cc0fdc9cb@epcas5p4.samsung.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: <linux-pm.vger.kernel.org> X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
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; }
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(-)