From patchwork Wed Mar 22 15:00:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 95782 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp282274qgd; Wed, 22 Mar 2017 08:03:09 -0700 (PDT) X-Received: by 10.99.55.20 with SMTP id e20mr16128755pga.15.1490194989082; Wed, 22 Mar 2017 08:03:09 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q61si2123012plb.117.2017.03.22.08.03.08; Wed, 22 Mar 2017 08:03:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934973AbdCVPCw (ORCPT + 10 others); Wed, 22 Mar 2017 11:02:52 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:31312 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760599AbdCVPA7 (ORCPT ); Wed, 22 Mar 2017 11:00:59 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id v2MF0ixe027483; Wed, 22 Mar 2017 10:00:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1490194844; bh=wKpZhZoukbacaTbJUs1v+kdGUpSn1vqAkMZzsvvRk40=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=vZefYk6LENaufN/caBuvGN1wZTumGdzVPur1mrTXZ72810AzaJqJv+tuqmYn3G1pi RPY7nz7/2s3xZT/E4ubleKX30YpZXcemIP1eyM5i+M3HMt40oEKvpLjoaLdtgXKVYV qCD72wGnIXelQlCA+MW4hgA3dSLoCaXiH6KeJ7Qs= Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v2MF0iMY015017; Wed, 22 Mar 2017 10:00:44 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.294.0; Wed, 22 Mar 2017 10:00:43 -0500 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v2MF0bLb000583; Wed, 22 Mar 2017 10:00:42 -0500 From: Kishon Vijay Abraham I To: CC: , Subject: [PATCH 3/4] phy: phy-exynos-pcie: fix the wrong error return Date: Wed, 22 Mar 2017 20:30:35 +0530 Message-ID: <20170322150036.12629-4-kishon@ti.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170322150036.12629-1-kishon@ti.com> References: <20170322150036.12629-1-kishon@ti.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jaehoon Chung 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 Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/phy-exynos-pcie.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.11.0 diff --git a/drivers/phy/phy-exynos-pcie.c b/drivers/phy/phy-exynos-pcie.c index 4f60b83641d5..60baf25d98e2 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;