Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7297234rwl; Thu, 23 Mar 2023 02:12:19 -0700 (PDT) X-Google-Smtp-Source: AK7set8lNgXNseHV1VBVH9/Fx1SwX+LGXqluSBvQlNVH++sznrZCRGnkIX1qJ5YHyNwseH47ex5w X-Received: by 2002:a17:902:ec8a:b0:19f:35de:c17e with SMTP id x10-20020a170902ec8a00b0019f35dec17emr7712073plg.52.1679562739343; Thu, 23 Mar 2023 02:12:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679562739; cv=none; d=google.com; s=arc-20160816; b=dqm7AuNB7MQ1K+mjj4fPRQTNLTSMzVadovzf3jAVxRk9KF8Jo1HD+nmSKA2XVeAhxA +pBxBVa7CK6bQGcgFraXwT8fgC9eIG199pRnEiiuhyhw2hFy/MYcAt4jtz4UbUuS1M6t e7wjyuLKSHq4pI0CsAfVzN/zpZe5hfTad/nkdUsz0pAiNX2fHGgNSwoothjDDv5RGTRk cQsa4UFNOvOeWqCiS4Yd/KR8GpJgRqVeCx+2WDDWjML+jmCsgn0JOZwpC6etMn1qiavP 249aKNEvl5BRe2dvuHFBCO8rEI/t+J4/1m4wTt1D311eQRz+Ny1zCpT5YSuaCNYEGpzh 91Jg== 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=MP58q1SZL/2pCi1668qJD//zfRMV95tv7647cEp0P3c=; b=R3ATkDUglunmm+Eo614SAXKcFqWQ/PapxZPGM9zJoiBycABkDX2Oo8NWh5HJ3/IbKt ua3cHq03+F4JTNObxZqu2/DW9E5fsTJEj8KPtFML+Mmrbhbyzox+OvcekEBpyEsP/y56 2PZvkeg6XsJRnbcxs2MYyEJxIoX6vpX8tCLC69W5XzjWaJhboi4p5Wkukpf7zDSc2txV nt5q+iGR07v6pKfyVAMQ0jawFfXa6J/c5Syc8ecR7A4I9zpVPhBsafYxK0LP4D/I1eFG lAV/D2IHlnPwyK9Z/H2sr7m2AeFJTrhv0Fo1GKn/wAnm1gQ7Jq6Qy3QhjUWW9oCREcC2 1/dQ== 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 z14-20020a170903018e00b0019a96871dd6si19461726plg.220.2023.03.23.02.12.07; Thu, 23 Mar 2023 02:12:19 -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 S229738AbjCWJFN (ORCPT + 99 others); Thu, 23 Mar 2023 05:05:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231669AbjCWJEq (ORCPT ); Thu, 23 Mar 2023 05:04:46 -0400 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D7BE20A22; Thu, 23 Mar 2023 02:04:36 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R611e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046056;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0VeTkM5q_1679562272; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VeTkM5q_1679562272) by smtp.aliyun-inc.com; Thu, 23 Mar 2023 17:04:32 +0800 From: Yang Li To: linus.walleij@linaro.org Cc: lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next] PCI: v3: Use devm_platform_get_and_ioremap_resource() Date: Thu, 23 Mar 2023 17:04:31 +0800 Message-Id: <20230323090431.73526-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-v3-semi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pci/controller/pci-v3-semi.c b/drivers/pci/controller/pci-v3-semi.c index ca44b0c83d1b..a8b49f841534 100644 --- a/drivers/pci/controller/pci-v3-semi.c +++ b/drivers/pci/controller/pci-v3-semi.c @@ -736,8 +736,7 @@ static int v3_pci_probe(struct platform_device *pdev) return ret; } - regs = platform_get_resource(pdev, IORESOURCE_MEM, 0); - v3->base = devm_ioremap_resource(dev, regs); + v3->base = devm_platform_get_and_ioremap_resource(pdev, 0, ®s); if (IS_ERR(v3->base)) return PTR_ERR(v3->base); /* -- 2.20.1.7.g153144c