From patchwork Thu Jun 18 08:38:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 191092 Delivered-To: patch@linaro.org Received: by 2002:a54:30ca:0:0:0:0:0 with SMTP id e10csp1126162ecs; Thu, 18 Jun 2020 01:39:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyI5aWwIe31YOw8krWfApxol9GHkU7/b4M3G9wRkKOcP7tugsOdhpzu0Ij2Rt2FfykZruvI X-Received: by 2002:aa7:d5c7:: with SMTP id d7mr3063034eds.11.1592469561881; Thu, 18 Jun 2020 01:39:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592469561; cv=none; d=google.com; s=arc-20160816; b=phYfY1XJxgyA8skVmBmXujQrTizNn9AAfKl9Z40BtECaQByNTNaUajd9FNEprA6zyj AwkB2Obqx4HAXyg60mPtrLbJKVBLcncM0FoQ+i3LJr8IJ/OVEJ3T59XQfwHGDoEGBd/z NlndB8wcfyz6kni4ljMsN4C7zHioJFtXxpKPjKBJmBKBU4JWUnIDhIM4KcBfkAFUHbcW Yl5QtUHHQNLBw/cEvX8p2PE19i6hcdCe55j1cHduZiGZaPr/2P3eqBOHCBRLYX4Dnkxg BJPlq+oGJhMN2GpNNwbPWVbNvBsImo6mzkm2FQB7AljlySp4O6Rjng8OK+RmVPEwmt7V WOtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=QPn7RyiehK3L1fHXGplowd2GSiLN/O2Xc/jht7++7fY=; b=NQd25XyARV8GGy4OcDGNVuRbcLQGh2UFP+M3Do1w8akJaeAv3yWMysEpHrdk8tGDOd knQOEh2RkgFeUS6qiiB9/79beFm2nnaiN0AjdklKBynbHFOrZPuFof4SNyH4UPL9iVeY 8QrWrxG5piAuV8oHi/R07eBC9u0eAeFGyFN1/+MwgZp9T/sKwLjDwxSAIkhmhYxACF8E bld6rTxbHU/KWzpqTeaOv1R4vzJen60vxOJdMzDCx+EMfQXdXevh1eroPfqinNe903ry LPhHzkcgIVfgVoQVRJfcLpnUIIF1MIOjXdi8fXj+uUKm/qPG0gr7xmesLLgqxayPXm// 3p8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gu20si1531413ejb.13.2020.06.18.01.39.21; Thu, 18 Jun 2020 01:39:21 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728704AbgFRIjB (ORCPT + 6 others); Thu, 18 Jun 2020 04:39:01 -0400 Received: from mx.socionext.com ([202.248.49.38]:19334 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728826AbgFRIi3 (ORCPT ); Thu, 18 Jun 2020 04:38:29 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 18 Jun 2020 17:38:28 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 7559760057; Thu, 18 Jun 2020 17:38:28 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Thu, 18 Jun 2020 17:38:28 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id D055C1A12AD; Thu, 18 Jun 2020 17:38:27 +0900 (JST) From: Kunihiko Hayashi To: Bjorn Helgaas , Lorenzo Pieralisi , Jingoo Han , Gustavo Pimentel , Rob Herring , Masahiro Yamada , Marc Zyngier Cc: linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Masami Hiramatsu , Jassi Brar , Kunihiko Hayashi Subject: [PATCH v5 6/6] PCI: uniphier: Use devm_platform_ioremap_resource_byname() Date: Thu, 18 Jun 2020 17:38:13 +0900 Message-Id: <1592469493-1549-7-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1592469493-1549-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1592469493-1549-1-git-send-email-hayashi.kunihiko@socionext.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Use devm_platform_ioremap_resource_byname() to simplify the code a bit. Signed-off-by: Kunihiko Hayashi --- drivers/pci/controller/dwc/pcie-uniphier.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/pci/controller/dwc/pcie-uniphier.c b/drivers/pci/controller/dwc/pcie-uniphier.c index 8356dd3..233d624 100644 --- a/drivers/pci/controller/dwc/pcie-uniphier.c +++ b/drivers/pci/controller/dwc/pcie-uniphier.c @@ -456,8 +456,7 @@ static int uniphier_pcie_probe(struct platform_device *pdev) if (IS_ERR(priv->pci.atu_base)) priv->pci.atu_base = NULL; - res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "link"); - priv->base = devm_ioremap_resource(dev, res); + priv->base = devm_platform_ioremap_resource_byname(pdev, "link"); if (IS_ERR(priv->base)) return PTR_ERR(priv->base);