From patchwork Wed Mar 8 08:22:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 9610981 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 12E8F6046A for ; Wed, 8 Mar 2017 12:38:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E992128505 for ; Wed, 8 Mar 2017 12:38:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DCD852856F; Wed, 8 Mar 2017 12:38:30 +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 4536428505 for ; Wed, 8 Mar 2017 12:38:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752653AbdCHMi3 (ORCPT ); Wed, 8 Mar 2017 07:38:29 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:45304 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752923AbdCHMi2 (ORCPT ); Wed, 8 Mar 2017 07:38:28 -0500 Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OMH00AJILXW6L60@mailout1.samsung.com>; Wed, 08 Mar 2017 17:22:44 +0900 (KST) Received: from epsmges1p1.samsung.com (unknown [182.195.40.64]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20170308082244epcas1p3c4a79aa218e209c677a1dd33f1d84f08~p2njgRn3s0213602136epcas1p3x; Wed, 8 Mar 2017 08:22:44 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id 4F.29.06711.45FBFB85; Wed, 8 Mar 2017 17:22:44 +0900 (KST) Received: from epcpsbgm1new.samsung.com (u26.gpu120.samsung.co.kr [203.254.230.26]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20170308082244epcas1p4e6509812a97b0bc9912b3deb296bae38~p2njT8q9I0847508475epcas1p4T; Wed, 8 Mar 2017 08:22:44 +0000 (GMT) X-AuditID: b6c32a35-f79d66d000001a37-1c-58bfbf547a90 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id B7.F2.06425.45FBFB85; Wed, 8 Mar 2017 17:22:44 +0900 (KST) Received: from localhost.localdomain ([10.113.62.216]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OMH002BTLXVV030@mmp2.samsung.com>; Wed, 08 Mar 2017 17:22:44 +0900 (KST) From: Jaehoon Chung To: linux-kernel@vger.kernel.org Cc: kishon@ti.com, krzk@kernel.org, kgene@kernel.org, javier@osg.samsung.com, linux-samsung-soc@vger.kernel.org, Jaehoon Chung Subject: [PATCH] phy: phy-exynos-pcie: fix the wrong error return Date: Wed, 08 Mar 2017 17:22:42 +0900 Message-id: <20170308082242.15915-1-jh80.chung@samsung.com> X-Mailer: git-send-email 2.10.2 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrMKsWRmVeSWpSXmKPExsWy7bCmgW7I/v0RBotOyFq8ebuGyeLGrzZW i/7Hr5ktLjztYbM4f34Du8XlXXPYLGac38fkwO6xaVUnm8eW/rvsHn1bVjF6HL+xncnj8ya5 ANaoVJuM1MSU1CKF1Lzk/JTMvHRbJe/geOd4U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k5pUCekQEacHAO cA9W0rdLcMvo/OlV8Jq9omvfWsYGxmtsXYycHBICJhJXO9eyQthiEhfurQeKc3EICcxilHj6 +h07hPODUeLF/5ssIFVsAjoS278dZwKxRQQUJDb3PmMFKWIWmMkosffxXkaQhLCAo0Rz82Ow sSwCqhJb3+4Da+YVsJY4dG4yE8Q6eYmF548wTWDkXsDIsIpRIrUguaA4KT3XMC+1XK84Mbe4 NC9dLzk/dxMjOEifSe1gPLjL/RCjAAejEg/vh1P7IoRYE8uKK3MPMUpwMCuJ8Eos3B8hxJuS WFmVWpQfX1Sak1p8iNEU6ICJzFKiyfnACMoriTc0MTcxNzawMLe0NDFSEudtnP0sXEggPbEk NTs1tSC1CKaPiYNTqoFRbt+BOXezbOfvjJQ7Vv7v5GdOiZ9cBw7ZOa7vSFR5u3/d8e1CvD9/ J313OSi3e5KMX9nVabz9/w6mbZh1NJRpkjHLz9/xU79/XRN1/mj18QdPyp8t5jzdqpHq5/T1 0w6nNdMbDsozRbjwriyJL+ksZfZ7u2ryJI3nfxk/LjVT9bLinKIaIxPdo8RSnJFoqMVcVJwI AAWvgsZoAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170308082244epcas1p4e6509812a97b0bc9912b3deb296bae38 X-Msg-Generator: CA X-Sender-IP: 203.254.230.26 X-Local-Sender: =?UTF-8?B?7KCV7J6s7ZuIG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbU2VuaW9yIEVuZ2luZWVy?= X-Global-Sender: =?UTF-8?B?SmFlaG9vbiBDaHVuZxtUaXplbiBQbGF0Zm9ybSBMYWIuG1Nh?= =?UTF-8?B?bXN1bmcgRWxlY3Ryb25pY3MbU2VuaW9yIEVuZ2luZWVy?= X-Sender-Code: =?UTF-8?B?QzEwG1NUQUYbQzEwVjgxMTE=?= CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20170308082244epcas1p4e6509812a97b0bc9912b3deb296bae38 X-RootMTR: 20170308082244epcas1p4e6509812a97b0bc9912b3deb296bae38 References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When it doesn't get the blk_base's resource, it was returned the error about phy_base, not blk_base. This patch is for fixing the wrong error return about blk_base. Fixes: cf0adb8e281b ("phy: phy-exynos-pcie: Add support for Exynos PCIe PHY") Signed-off-by: Jaehoon Chung --- drivers/phy/phy-exynos-pcie.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/phy-exynos-pcie.c b/drivers/phy/phy-exynos-pcie.c index 4f60b83..60baf25 100644 --- a/drivers/phy/phy-exynos-pcie.c +++ b/drivers/phy/phy-exynos-pcie.c @@ -254,8 +254,8 @@ static int exynos_pcie_phy_probe(struct platform_device *pdev) res = platform_get_resource(pdev, IORESOURCE_MEM, 1); exynos_phy->blk_base = devm_ioremap_resource(dev, res); - if (IS_ERR(exynos_phy->phy_base)) - return PTR_ERR(exynos_phy->phy_base); + if (IS_ERR(exynos_phy->blk_base)) + return PTR_ERR(exynos_phy->blk_base); exynos_phy->drv_data = drv_data;