From patchwork Thu Jul 6 09:20:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 116591 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2430814vqx; Thu, 6 Jul 2023 02:39:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlE1I6H/973/RBiKIYEQ5Sjyh+FTK86MS4f5fJCSmrPgaS8SpJ/xBwVBXx1itnlWtOCeDWLI X-Received: by 2002:aa7:8891:0:b0:681:3ed2:b493 with SMTP id z17-20020aa78891000000b006813ed2b493mr1114483pfe.26.1688636394794; Thu, 06 Jul 2023 02:39:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688636394; cv=pass; d=google.com; s=arc-20160816; b=srgB5+fCiIxgyFkbCI8w8aepyzhvIwIwFeb9XNuyoswI9aOL7pZ3EW3dZDuxJuHL5+ guqSPvqx9Gxb+qRotoR9KpsVlQsTbzfg/kvsTlZm/JFXkPBCKaqXE1a11N2KLduO6y6M eV+mw5T90KMz6wgdRagpITDhuz6unWA8thTW8KnnD4fhtZL3iQKxyBJ7Vp4Nj/0zK/LD Z/PJJyVIS7zCmxvLLn3U2UsBXkmShDDs/A0dYxTpcktjRVSuBFekGMx5O5K8Ku8sxJ50 qO50oyxRMVLtBbtGxbLYzDHQ7r+mnaRmvABrH59V64MyicXTwAqVpjLWfV2qWuC+UkOk zlAg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UUIr4//1Z0vRI5H54BK4dx7TDfrFJieljwl7yeBA7Ws=; fh=lYMxi3UNKwatN04rc7WwaDxwCtxLKrQbzKnIkOSg6X8=; b=RBmCUAnzJM+j2bGdvgBng8kADZbyo5Y3cIcQlbugfRCmJHX7XSG8qgTa3+gIdEYuBa sUEvWzTIuM7lh3UMag/Y9oLQBK13gooJZJ1+ueMGICgXmu1jnrcsAVDkUKik0GLx4yaV FprsOmpzQzQkdY/kD5j+xvl82HJ+0YF4lHyemxAA+IkBg4hYR/9Zp7Di8+EnZ0mEJAZm IuZj1HcfIbsLvDdHvRvOInSdZG6ZZ98hIWaVF+fp6ZQgsQDl0Qk0Uw5qKOoH8vztV3jc rgeusBxH/NYVHnK4uxOvUJP1NCjqheckWf1H7nzA+WFC6q6T4qI5BluHOBAUECP65+IF 1stA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=nI2guFCV; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fj10-20020a056a003a0a00b0067ff1a1ccbdsi1111558pfb.91.2023.07.06.02.39.39; Thu, 06 Jul 2023 02:39:54 -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; dkim=pass header.i=@vivo.com header.s=selector2 header.b=nI2guFCV; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230207AbjGFJWj (ORCPT + 99 others); Thu, 6 Jul 2023 05:22:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229772AbjGFJWi (ORCPT ); Thu, 6 Jul 2023 05:22:38 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on20709.outbound.protection.outlook.com [IPv6:2a01:111:f403:704b::709]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD15E1BE9; Thu, 6 Jul 2023 02:22:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aHurPOykK4cuq2UGfuN/i8fdcyFm0e/Xp6Py7lCIHPplG6ZfEOW8pM9a67o+3/nssk13qLPilJ9f0Q+uyazDx6/+bu5MY2+8b18lAYn6c+kRJ4bG4CPwnnUrsVMhpassHt+jbAi8DTkxoeiGPDaTUxePT2P+kt2QLDbUzOBUMNtoqF3wvUYmScRAtX/7otqqNvJdOfXFl2K5535I++R2Gi752gj73xRdZYkxkdUJFS0j2FUozZ/a/v0tzA5sY8f1hlIPjKAmEaBAikkvITABKlZlodL2eP9ttb4uNFLbwj7jfNLNIHi8RgwgEGaTjqj8GHPraKHbsNw4EsajCm0efg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UUIr4//1Z0vRI5H54BK4dx7TDfrFJieljwl7yeBA7Ws=; b=fJovWI5JwgP4sHuOjZasZ1s5j1GXRc26oRQeQbFe8zbqndzbDTD9LFEjJPpbtfIWiyqFqGUqN2hMr8JHpOFghD0xcJZrHyVy/xRN+zcchD0zVeay/jVeyckyGxSjOtqd8kR3HVVWfEz1L/aD5rA0KILtQlBCUPBEp7DE7JzJ/05Ez5vh+zpAOLRPrYwf8jlExsViOUDJjiFsHQsLaGIYfMokwySx4EUpcYpgysypXvFlb6KLIOCeLwc9GPcldMR6xfUWRmI+VmxFsQS65oK7D6lmHT1a3RaT2wac8eWVt+5txRqjAwWFJp//OPuVmrmHhieM0CKTA+xz0NN+OvnCiA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UUIr4//1Z0vRI5H54BK4dx7TDfrFJieljwl7yeBA7Ws=; b=nI2guFCV7bzzplMcK98sKqc9wNaBwoa8rv/qhC8OXzZbOpwGV0XH6WItMSPH4ssqeMOPUlHaeAD1uK7yObeIgT90phy4b3rf5M/tTPSJFaO9MWx8OC8PWWFcsjF0akLte+VAN2KV/XffX3qQZrVZkYHNlz+Ai69kTc2/AZRReGCKy4R6oKRu5IBVYX2OkRt9GBjXXmJd6V9YNpeN8bcpjdgvSph16bo8Pn0YmlSvqXkuF8vSyhf9SSrGRV0Hebs7uxt3vyBiuk+pO8tbeC4verIkpocxRbinG05Y90mEyT3bPU+e5wqd4lIgFgZtONddr73lYt457af/aY0njN2Amw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by TYZPR06MB6378.apcprd06.prod.outlook.com (2603:1096:400:419::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37; Thu, 6 Jul 2023 09:21:05 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6565.016; Thu, 6 Jul 2023 09:21:05 +0000 From: Yangtao Li To: Toan Le , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84?= =?utf-8?q?ski?= , Rob Herring , Bjorn Helgaas Cc: Yangtao Li , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] PCI: xgene-msi: Use devm_platform_get_and_ioremap_resource() Date: Thu, 6 Jul 2023 17:20:46 +0800 Message-Id: <20230706092047.18599-4-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230706092047.18599-1-frank.li@vivo.com> References: <20230706092047.18599-1-frank.li@vivo.com> X-ClientProxiedBy: SI1PR02CA0035.apcprd02.prod.outlook.com (2603:1096:4:1f6::8) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYZPR06MB6378:EE_ X-MS-Office365-Filtering-Correlation-Id: a7ba6d09-f2b5-483d-c38c-08db7e0252e4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KHYIIh+iva2TON+M05vbQYYwoUs1M0QDJmvIOoypIn0VE7j5p6z0TkU91Mnq/KkH/clpJsTGxPaowWx8uokT/RQd4BiiH5tjp9pO11cuDTv0euRKnObF4s8q0nxvxm2lPrOiuhjybQNPgAh/p9wnD4knxPwCjWFEq8NG6+6J5QIjk1skx+12UnHLOm3cufvmBCH6Pga1zKQCrCKGK+Tl2xpZ9nhKooPk8BpjAvakpvYc4nQsbvokjHYP+kiGwUW0rvOjMo0qtcenS7Co/ld7mIG+uX37OldT4yXBilo4+NGB8zNG4H+kDl6X0tgg7BoLaZUDzw1ndcyGoO4ILGoXOvuaJZ/7u/v03NazzLPue3Fmj5QM3hV1FYs6SzB62HyVjtkGhcmU946/FkV6fOAwxtJvMMghuStw4H7ifDM/F+0/ez0mJ5MBlUcO2VUvklTmLXYq1dUR7oL8hHmFbKabhq19uJbJOMOzO9LbzkgT+/XMcvcpRGiwXDmauUDr0vG7la+SarkARpDoFjEz7TJzSrTMx4X+AUt6Mg8/yvk/ikStua+yKYB7br9gGxxiHfw7/dM7LgzO43+Rw8m1RHW3B37xC9LlEhjo/KRWL01t09gRu11Bj9McMGqjSRNIpTPo X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(346002)(366004)(376002)(396003)(39860400002)(451199021)(1076003)(6512007)(66556008)(4326008)(66476007)(8936002)(66946007)(316002)(36756003)(5660300002)(8676002)(478600001)(2906002)(4744005)(38350700002)(110136005)(26005)(86362001)(41300700001)(6666004)(6486002)(83380400001)(6506007)(186003)(38100700002)(52116002)(2616005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: wu8BNovDD0bpbEuNFXNqvrmVMGftccpikvJWvocwdFwGOKjD534Vnf5nZd6CglsMY29ScxwLYBKsg8zxrClqDMrR9wkEEoA/PwHBmXihKVTu5zBTvedQYhSeY5Xh5oUyTVJ+7rKnrIq0GbPVrv7P4/ye4uJ/61D9tf776bqoZe6/dr++t5ETm3h7Uav2AZ2m7AXvC/h9kRrwvMuOzz7g2Xscq0ngeFAs/f5QOk5mF52IDht+S90ojpXWR8Rv3TkhsupUR30WNqwtTrlieB5V9N1gIcD8FRB414/KO7gMHnvHXYrL7z+XpeMaEROqONWJXvh1bbZgBnagCLFl/GlTSIwuvqsgFur0ucfQNTqv1c8WjNpW+RBvfTY7XBmLHj12gMrRU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ikG6Vz6UV6He6y36o3MGXTBG1s2E+UlrWoJ8coNTFk3HjtY4g8+4ZBOPfQyzqbhFk2g+hw1OG+TqDR0gygWFyzTnj/6BM6jXLT80pDvIY1o2tDwIyJRk2RVkEz62P07N5 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: a7ba6d09-f2b5-483d-c38c-08db7e0252e4 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 09:21:05.1516 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: x9Nl4Y6X2TllQud1S9B/edu6C5y9vIwPwbGvuB33RMeOSM/UENQNGWZHRREp5gTRkFGl+YKfBMgi+2+08inajg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB6378 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770663595996629897?= X-GMAIL-MSGID: =?utf-8?q?1770663595996629897?= 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: Yangtao 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;