Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7291939rwl; Thu, 23 Mar 2023 02:07:06 -0700 (PDT) X-Google-Smtp-Source: AK7set9KbejgG0Da56Dxsbp6wZXp+GfnOava9MPzMhdYn7VGGoJ/gQFae4uRxm4BZfuTv5x+o51x X-Received: by 2002:a05:6a20:3114:b0:dd:b941:5d99 with SMTP id 20-20020a056a20311400b000ddb9415d99mr473815pzf.51.1679562425919; Thu, 23 Mar 2023 02:07:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679562425; cv=none; d=google.com; s=arc-20160816; b=lK5fsIWmHCvpH/HlQG86gpc91ubBDXmTYGKwJwFhUDF9JP6ZEJluAUygljvZzyAkio c6wjGRx1s563x0QThPU0FLzdFGi9WZgXuKGwyYP4waGFklkpTZMKPqXnhgCJ5XJi/tUx QRbShemYEgjjilYlDRzqDzGka4db3B9PP+afos9MzZ0rR/v6C6yaEhZh5R3dzlCL72j4 9mVRM8RIrAhDoA6JRLu4U/a7PtqQdA573IL25/75N3Tm5ZAskUq9ifPqy0fUmE26DeKd Vtl1uGqGTGkVe7D36km5oLelG6KO86ETO8HxhGPON2qS/Jp9CRg6vkH9fBdRcQONkGMu jc8w== 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=JJmRjda+G4mO6hx18dmJc2sVUNWjM2jHvBr/0BXOg2g=; b=qAaC6e46nzaSMPOvTs1JfwMgos5j45eNQSQ3M4PK2PKyGts0FEM6CPKftrruywn8TD LYvXj8xdLIC4pyLYhUX7Dy+DONP3hyqVZ46FDsjX58n3blAOMPd3YVhJrSC1VZBaHnmO csiF/PRT/iq33jsbD8MAdekWps+H3lOyIadMg7HU/1ZPspwwvUpCLfmn3ZiRFWW5RFJF FREAJKgJGOn32eNcsIW9mqUsdXNpqRel5VO+vtEQBrsanz978pSgn15IiO67ZMsZuH52 2zCBWLM6KnFg11IpO4bA3UrkGSehxe26LGUPzXY6QbkIGwVYExY0URuThHs5tiblnDKI SveQ== 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 z186-20020a6265c3000000b005a8bd21e2f7si16647611pfb.186.2023.03.23.02.06.54; Thu, 23 Mar 2023 02:07:05 -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 S231217AbjCWJAU (ORCPT + 99 others); Thu, 23 Mar 2023 05:00:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230181AbjCWJAT (ORCPT ); Thu, 23 Mar 2023 05:00:19 -0400 Received: from out30-112.freemail.mail.aliyun.com (out30-112.freemail.mail.aliyun.com [115.124.30.112]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4749986B6; Thu, 23 Mar 2023 02:00:16 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0VeTrQuc_1679562012; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VeTrQuc_1679562012) by smtp.aliyun-inc.com; Thu, 23 Mar 2023 17:00:12 +0800 From: Yang Li To: toan@os.amperecomputing.com Cc: lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next] PCI: xgene-msi: Use devm_platform_get_and_ioremap_resource() Date: Thu, 23 Mar 2023 17:00:11 +0800 Message-Id: <20230323090011.66754-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_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-xgene-msi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pci/controller/pci-xgene-msi.c b/drivers/pci/controller/pci-xgene-msi.c index d7987b281f79..d7e09f264d52 100644 --- a/drivers/pci/controller/pci-xgene-msi.c +++ b/drivers/pci/controller/pci-xgene-msi.c @@ -443,8 +443,7 @@ static int xgene_msi_probe(struct platform_device *pdev) platform_set_drvdata(pdev, xgene_msi); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - xgene_msi->msi_regs = devm_ioremap_resource(&pdev->dev, res); + xgene_msi->msi_regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(xgene_msi->msi_regs)) { rc = PTR_ERR(xgene_msi->msi_regs); goto error; -- 2.20.1.7.g153144c