Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7309918rwl; Thu, 23 Mar 2023 02:26:30 -0700 (PDT) X-Google-Smtp-Source: AK7set/nffSMTe1nTbMRIeSxSaah+pKDhWB0IqiGEqbAu2Qtx50GmrH18bE6Q1HnRunvilB4BMc8 X-Received: by 2002:a17:903:188:b0:19e:786f:4cac with SMTP id z8-20020a170903018800b0019e786f4cacmr6751781plg.53.1679563590205; Thu, 23 Mar 2023 02:26:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679563590; cv=none; d=google.com; s=arc-20160816; b=Cvvc5FZfsGsAwkNzO/edy2ilfm373mw580PeBMRs8AqNDs6BWLBuOUbfh63JIYhrJ3 2/4O1W+/TmlnYSEzl9yeXvvx8hnNmlbPXHgKwRbtiAn4N6W/OFwjJ1PK8fv/xlARhSiV fi2dfnd1Go39PNGV+gvNwiEmvm7OuCXLQ4Rk5X8EikMq+GeZaG4RFP1FB7vJjfPDOWD1 fFTu5yvWw/uxDltfJJMvot55UTx7BDGARD4b7GuFIsdWhW1K8LL1sKZsde2d8wClw2ky Sk93OtC30Veof3/rCgvghl+/QeszYJKHT6dKOgBHAXG9nnATQyl4KpRRi2mxBDOkjQSO p6WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=BaxIZZsh5aTPCx31nRoaV+Xo2RgD+3FipOIhSVIyjfA=; b=ER6acFxEUUe0mqOzrip/S/KtaDfIO/duQh0DToHvBSb6Xf0BJ7I9X7gOnygvrgZ5Ef U3A2SUnPUAgQoLmoI93KWnY60RmnSjDvQHEZ6cISXX2XgLUJZX62iaKl6seTFOOgGQzF t1lhjmUAoxjureKm5HjsNDlhX6RqxUAD8QYsBBpEy95slBobPmh2+Co/Yq2aLn0N4Pov LkWJlux/zsj/RWcORcxr8qZhog+ZH4lLcqRFrWKUy7DJEdJo+bsVfkyrJPR0KoMsEyT+ iPOXcvcb66TsWI5Fqh0tgsRdfGD0CX3YkgR2LqkOH+zjGSbniTgdDrRWWBDSHnGB8z1x 1+Qg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t19-20020a170902e1d300b0019e8c3cd415si17071896pla.260.2023.03.23.02.26.18; Thu, 23 Mar 2023 02:26:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231289AbjCWJQy (ORCPT + 99 others); Thu, 23 Mar 2023 05:16:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230340AbjCWJQw (ORCPT ); Thu, 23 Mar 2023 05:16:52 -0400 Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A27B1CF68; Thu, 23 Mar 2023 02:16:48 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VeTkQZk_1679563004; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VeTkQZk_1679563004) by smtp.aliyun-inc.com; Thu, 23 Mar 2023 17:16:45 +0800 From: Yang Li To: marek.vasut+renesas@gmail.com Cc: yoshihiro.shimoda.uh@renesas.com, lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, linux-pci@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next] PCI: rcar-gen2: Use devm_platform_get_and_ioremap_resource() Date: Thu, 23 Mar 2023 17:16:44 +0800 Message-Id: <20230323091644.91981-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.0 required=5.0 tests=ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org According to commit 890cc39a8799 ("drivers: provide devm_platform_get_and_ioremap_resource()"), convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yang Li --- drivers/pci/controller/pci-rcar-gen2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pci/controller/pci-rcar-gen2.c b/drivers/pci/controller/pci-rcar-gen2.c index 839695791757..d29866485361 100644 --- a/drivers/pci/controller/pci-rcar-gen2.c +++ b/drivers/pci/controller/pci-rcar-gen2.c @@ -290,8 +290,7 @@ static int rcar_pci_probe(struct platform_device *pdev) priv = pci_host_bridge_priv(bridge); bridge->sysdata = priv; - cfg_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - reg = devm_ioremap_resource(dev, cfg_res); + reg = devm_platform_get_and_ioremap_resource(pdev, 0, &cfg_res); if (IS_ERR(reg)) return PTR_ERR(reg); -- 2.20.1.7.g153144c