From patchwork Tue Jul 4 10:18:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13300941 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23770EB64D9 for ; Tue, 4 Jul 2023 10:18:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231462AbjGDKS3 (ORCPT ); Tue, 4 Jul 2023 06:18:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229915AbjGDKS2 (ORCPT ); Tue, 4 Jul 2023 06:18:28 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2117.outbound.protection.outlook.com [40.107.215.117]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51152F1; Tue, 4 Jul 2023 03:18:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eU3gg7aduJVFW0NbiOyM1e+hQJBgSTeXrK6wgzTeGyv8jiPH6nwtolLdvjewvNfFiyyMJLXDRERI9P0+cDMQViEoPtd8hqVDUFWAQmIAfkrpNrO6GT81WulH0gOlBPs2u/jJu2eD8JpxFFtNFTsMllUTPGq6iNwkotwjq5L6gai1iAaoa+ihHx8uWeQ4LCQEHJJtaybewHyRjrUEDueWmqSL6pL0Ux/ws2YICIddKiAnglv3BUwfcvZgoxWsEnNBShpWB5Mk3tbEW7QeVBeLgt/hRAedwJSXSy4tgIrs1no1Yab/unhdmReBkweiYdJRsO2v54y5SNc3XVVjEJ9D0g== 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=+/yWADFobI12CsfdzcsiL04jWUOVA8kkFX4k+CGNq+I=; b=Cq+zJe6iZAL4AM/SNTGy0Tcg6lShxC6+ea5m0ZYMdcKu470Dk/oUMsHe6BjLXB3xHCL9eT43rddnj7mhOM2zUuFkB+42QO2SIw13DAtQ9i9+99uVkq4dY0YvgRP8HGbdLSLfZYJmyy4PArL8qgi5VPQ3MYuSL8dzAXqZhH6f5CQVUQwMm4duTrxL7ZgtlJ14qBRNtyi78txepsnh4Bh5PGb8dWlw7lCYlcJ/vHOqohZDnmZKSvc1L+aWj+eZVgDAm7LozlC2e9nUWXlMavdFApRBPAtaTjJ4gcwWuoSa2pfA42m8RI9FgjxbFhnbQ31SCDKHLMHCzheXRqXgFxcV3Q== 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=+/yWADFobI12CsfdzcsiL04jWUOVA8kkFX4k+CGNq+I=; b=HU40vSYx7xHAChSDQ5Eo3LuU+i2VgMn+QlZvE+BRVvau64+dylq/o90ZD5k83+S4FdhK10ZB0Qx5heahzNM3k2jA/Is2y1J379Qzn9dloTg4fk41BQ+rHAs2y7xCrRWbNESOGyfnmjgMVabJDdjjPDFocwaD3XHAp5pEUu5CeEx7BRoUevNjNmqVbw4psMlinniEX6+ktdHwvZHDYoFTzabJGfRWlyh0fSQtTr6FMNb/ghYroiEetHv30UPHZatx7jWKIvDqO3aLXQUCcd0/qB5bQCs11fCy9+ia7LYzn/1frQsEm5xXW47o5/0+Q+DdeuoxfwyBnyG2M7yTkZhRhQ== 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 KL1PR0601MB4274.apcprd06.prod.outlook.com (2603:1096:820:66::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Tue, 4 Jul 2023 10:18:23 +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.6544.024; Tue, 4 Jul 2023 10:18:23 +0000 From: Yangtao Li To: Shravan Kumar Ramani , Borislav Petkov , Tony Luck , James Morse , Mauro Carvalho Chehab , Robert Richter Cc: Yangtao Li , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/5] EDAC, mellanox: Convert to devm_platform_ioremap_resource() Date: Tue, 4 Jul 2023 18:18:06 +0800 Message-Id: <20230704101811.49637-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 X-ClientProxiedBy: SI2PR01CA0050.apcprd01.prod.exchangelabs.com (2603:1096:4:193::21) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|KL1PR0601MB4274:EE_ X-MS-Office365-Filtering-Correlation-Id: 858ffc0b-1fd4-4cd7-be6c-08db7c77ff46 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: L4LIZUKdXZtC1GkWyc+mQuc3Kb41NiZcxREF4ZOwPiX7Lwie2/fJOPpmrtckYeFD+vZ6EdR+HgJDk7OmZHirnT82ojlbk0Hdq/X4sWBaLdTq2scaQvHva4ZttOxw06Fc/x4QMcuyT45CJ5WYTOB4q6BY1tFNyNEqWH+rCbBsy7bx8KuHLmithb4L1JbxNlPc/+1QO/JX76ZRoIo8PAkdGtkke0nRtjbNy1aMVaXrFcSyjOfj9aP2XCGmQqQzYmpimiblV6g0WDqI3vuR0RHl1p4MuPrUsYzEiexNcotpkKO5Lv4OXVGtjf5FCmxykDW6jyO09YXB/aBBNTSEQjura8uUeELgFOkMpE2Nayo7MLcS1oo5TMYwH8C9wUAGdKzuX6UaroyCc0LzVRMtAida1/PhTGsibrpRsh8hhkToIDbHepNP9SYb4uOaclmVHPDna4jwaNvl3KIAuIOfhvm0TPnXiRUpO9h9MHlSIFRJ8mbisQDZjEuC6Pt3JdRGU05jo0O0mi1ffigo8cqpxCDTnSxqnUsafZ/ChMHgEdsUNPxdkx+UZ6TcRhXXcof2k0WfaFUR+rp0hThWKfRbZM78i/h3qIOSxnDfasdzIO8B4I3Tg2rNZeKOnWQnZ2lihbeC 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)(376002)(346002)(39860400002)(366004)(396003)(451199021)(38350700002)(478600001)(110136005)(6666004)(5660300002)(8676002)(36756003)(8936002)(86362001)(2906002)(38100700002)(66476007)(4326008)(66946007)(66556008)(316002)(41300700001)(83380400001)(26005)(186003)(1076003)(6506007)(2616005)(6486002)(52116002)(6512007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: AkI4OZ7gAALany3mhFXJaGrzG5hYU9ieHfSuVKgvxTcE3URMnib8uNskPWaTh/hkXQPy5ZkaeXJehDsoCuwezCNkrPx7g2j8lHWMoVlDosmpFDQvk1cKgebiqmcTvpynHGCwPB+9qSY8FVf8QLT81KD51+7roM27qXNmUcJa6X/dYJXu7TYIETCOogXX9XMVlq5eYD37Y8JI5roHhGL8DKVBq4vdDmWvHIC1w9y9ln2s9PC/FalClqQM5a0Ja9leOGPjFzW4s470jLo4HO3aamLg/RPTOCOYboZ25Rc8QclJUIqxFr2iNyqGQEOSfE8s+Lis2oojr4WzbBk8QvqD+CGOMfl3Ax26jO0RNS42HMvY1dT+L81MTKG1qlZUDQLKXgpBos0S81jK+1gXEzgiaMNT2mCWYHVAfavbTTL48cuD7gKoIstQjZeYGWIcKuVJHKt8WkiDpSl5rmgamOND1bBX/OgM0KaU/LAJek7mDFr7ZK6CpqtplgAL2vwYzer05tKOWzl9f3ChMmYVsdqEsqrLCvF4jeY6WRlakP3LUjQ9V9wIMmVokLBgvp41xxkT45ztQH9kibaNC975mFVH3pPdGfujLf28vJIXT6YemmW+41LP+Kw0wRFiBLEy9dm9U+x84RbzZERXyFhVhvy/eFvdWK73ckehFdIcgrT0mtTyP+gdVIcxOUUOIbhR1pUdXNWOcRcc84fXk/9I1q0Knr/K18zwS611RP6GVo/9FxlYTlkeS9dtWI5MynS8lqBo+rNJqaN4znOGFIP59l5Ke0kC0bej57sLQOtjQDug2FnwAkkq1S2sI706Z/JpXA3Oa9+g9qGBFcPOCLIScr8wT29Q0hJNF7dhmEEYmUEdOKcnLV52yRe1MtQoR1g7jePd1Z8gF/TtQcXZd2TpVMuxnHTTOq2b7uMO/XDSZ7xMiomZU0S79b50K6PfTA96GVdXMUoCOi8cveT+Ui1xZWUTqN54UAXNTJa2N3MGKdDsQtybNkKJcGVZIvfeD/L+X4hMTFyftihYVp/Rz5smHGv/+IH3HEMbzj7jEJ6KfhQX/PBVjMe2/etfeqPvn7slSyhHr1KWw4nputi0TOXrMQwHRdIPhqHv1NLCjal78OXqn5CQwmiRC4adA2zUlvAgRhacfsKoDOAvwacMBMjOzRcNYR3QYC8dXUUGurLKPtev/QL23IAkbNnAn4OesA3BoAcV15hERDT7xybPdnkB9ahxTIrN/O8hxlZLxP+UAXV1KRoCtmRfYH66+Bgb6Z0wqWHeMsqXpj8lD8F803ffY1gyT4CD17l+MKIJAhAY3AbIwX1MxgNmV90k5nd7pJjwBmmskqYi+9kRopo1TG7NhKeG6CGyu4wLNpXlkSWTWZz+YsKdvG11QLfN5wzxNfx6vyZcSR2zJr179UknxNi95D22yIjZudXCTwRAvyCihHkybJFA04+6AO+uNcI7GQcoLqshC7QO4xym+xMUXgELcLAIO6KpCaB4eFxfdnEnbrg+FSeJ0fTVDOe1KeorOpXM/OQOITqCHOZOZdY2xK/OaaN4k7RKsWfvGzUWPeY7I057oMNeS45jPFVsFjM+Y1zXa2xl X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 858ffc0b-1fd4-4cd7-be6c-08db7c77ff46 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2023 10:18:23.0259 (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: sTKFGTDBMfKDTgyZZ0MjnNauh6LhVdi3LxMnnN+cWTTZ92WUdSq9ZpLfbZMTqyvJ/S08BwgRBvZdfAbB6hcNNQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB4274 Precedence: bulk List-ID: X-Mailing-List: linux-edac@vger.kernel.org Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/edac/bluefield_edac.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/edac/bluefield_edac.c b/drivers/edac/bluefield_edac.c index e4736eb37bfb..0d09add30460 100644 --- a/drivers/edac/bluefield_edac.c +++ b/drivers/edac/bluefield_edac.c @@ -245,7 +245,6 @@ static int bluefield_edac_mc_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct edac_mc_layer layers[1]; struct mem_ctl_info *mci; - struct resource *emi_res; unsigned int mc_idx, dimm_count; int rc, ret; @@ -266,10 +265,6 @@ static int bluefield_edac_mc_probe(struct platform_device *pdev) return -EINVAL; } - emi_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!emi_res) - return -EINVAL; - layers[0].type = EDAC_MC_LAYER_SLOT; layers[0].size = dimm_count; layers[0].is_virt_csrow = true; @@ -281,7 +276,7 @@ static int bluefield_edac_mc_probe(struct platform_device *pdev) priv = mci->pvt_info; priv->dimm_per_mc = dimm_count; - priv->emi_base = devm_ioremap_resource(dev, emi_res); + priv->emi_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(priv->emi_base)) { dev_err(dev, "failed to map EMI IO resource\n"); ret = PTR_ERR(priv->emi_base); From patchwork Tue Jul 4 10:18:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13300942 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2B50EB64DD for ; Tue, 4 Jul 2023 10:18:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231608AbjGDKSa (ORCPT ); Tue, 4 Jul 2023 06:18:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231478AbjGDKS3 (ORCPT ); Tue, 4 Jul 2023 06:18:29 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2117.outbound.protection.outlook.com [40.107.215.117]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CAE6101; Tue, 4 Jul 2023 03:18:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J7yWMSe2kitItBlr9Y8Qs9clv/vLoUUD8UjRTgep/eGOyZbp/0S/SgEByGTd1AxOk6SHmqz8TuONqv29cFCWVnmsL1gbgV1I3AtiiAYa9YPGF2my6NDqihZpg/Bsh89w1lvPY5UZ6NZTCLdchnQK5SgNF2gYs4OFn3sd68IlpYAzrVKc+tjjcBjfQ68F4jJJ3j92A9nsWLGhZMltH6sVelp8HAdFGW40BmPSV94NfGQi/SLVYFbytNDcuFUwzN/Wufk2HNRJ/7RmkBVYboPaXbhR1fOQbg2QzHw1ulP4gd8O3VXVAYv62zHF5q19KbxK3Hq2S+dOWddXSx5MGn0BQA== 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=NL5pIPf+/mXW4lCMlTg7APBdCAO+2j68pQWX+FYKsw0=; b=gx6Vqe4g1F0FbKIgmVDsCsp6tR+oMgVymWf8BcdEKJskca13zm5TO8gznbqEOEfdNGVsv09k0ZxVXNjViJijn0u8jRse/tGG7lQCh8F7pb1XBDz7mAjrN/dtP3RUAmEZNcjpB93k9ByuZfc4WAhjW505kOCCDX7rfMJE+HMbwuDiTI7B9rO2Fxmt+eF0QQ8wfe7m/et8/qQI3zDUIVaNURuTkTttVWgPPWNLiNKZGChj4JuSQ0KNRwl0elA9alL3YYVAKTPap03ZG3NF0KlhOY9j5GUr85J0AmItZ1aybb9Tbw+HrcregzRvTW+uJNxMk264mHbfWeQO8HVCQ0skEA== 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=NL5pIPf+/mXW4lCMlTg7APBdCAO+2j68pQWX+FYKsw0=; b=pLBQKzzTKNhC0GSeBGlw84pJ8ZiNhJX+yHxNDguv09kAu2QkbkE54+ZogzSaUuRVFV2H7YujMFGDE9E98j8YyhBene6CCBZammZid/9NcMA/4r7zMLS/pPearthrCoPOG+7Ce2ZaONzj0LO9k9zVf4dn+1v7qkfVLdQxpEOS4S27X5HUU4f9M38lXU5xac7Y8n7hm0UekIl++oOk84l1FWv/31fLPVkgErJH4BEeNxJR//mM5y+stcDEMqCTn18fgqTz7hSWOltXCAvuUnSvIjJCbiV71DXF1mv60CnB7I92FVe1aFOm84kHXGydOHZCnR5weVsY3hqIH503vWKydw== 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 KL1PR0601MB4274.apcprd06.prod.outlook.com (2603:1096:820:66::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Tue, 4 Jul 2023 10:18:25 +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.6544.024; Tue, 4 Jul 2023 10:18:25 +0000 From: Yangtao Li To: Lei Wang , Borislav Petkov , Tony Luck , James Morse , Mauro Carvalho Chehab , Robert Richter Cc: Yangtao Li , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/5] EDAC/dmc520: Convert to devm_platform_ioremap_resource() Date: Tue, 4 Jul 2023 18:18:07 +0800 Message-Id: <20230704101811.49637-2-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230704101811.49637-1-frank.li@vivo.com> References: <20230704101811.49637-1-frank.li@vivo.com> X-ClientProxiedBy: SI2PR01CA0050.apcprd01.prod.exchangelabs.com (2603:1096:4:193::21) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|KL1PR0601MB4274:EE_ X-MS-Office365-Filtering-Correlation-Id: c714cf07-4117-4f45-9e2d-08db7c78009b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sc4WTj7tfUPAqt0WowLqpMqwFr23aX3+jOG0qkZZnS/HccrXqFhdv1fTYeh2v2YS8R16Go3pUPSInmDi0wHdXZGd2NpCVOyWJDs1ppqOBEf8Carza53h++nyAHuWu1fzGZCvQSxP+t0KUwgoEGhOGZl/2utulA2SacFFez7saRZw2/VKffqcJxEv4MuvUcq3Ss+NkYqguwNFggMXv5iVPMatn50x1qi0RrQuDPQa3jNv/YrLGOPZrmrTtBTIF6orbwpzlH+5FpqZ4zSuJiGjzyYlWsl83nfKS4xFmozGnnuSpVFL/3FBXnmPpOIMdoaQ07WM8xj3VRmixUXzQRO5++Il8/XX57GxtiDZE+eQWhhVRKTt39KOvjWezWGuVE+RDR++76b7ls2htcN9KhTI0GRmeBrp8NP0qOKIybVn/XNT+7qg5AkoNCqQh9lOJ8m5gtCgfswy5G7dYMD5yWdGd9UpeLtSY3t+IMd/9DpnuxirpKMXQb2AthOkqRvn8lnSvzdWwJkC9nwQieCeGzqgXSkFgaw19Ky4n9zYmdeHDlBFIVzfHanBoMeJkP8Jr2MFTX1gkSP07bmivEyHd6dN9bhrSzmD84A6eP1Tz72oJhXB34j9TBT1TKNRKGYMT42+ 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)(376002)(346002)(39860400002)(366004)(396003)(451199021)(38350700002)(478600001)(110136005)(6666004)(5660300002)(8676002)(36756003)(8936002)(86362001)(4744005)(2906002)(38100700002)(66476007)(4326008)(66946007)(66556008)(316002)(41300700001)(83380400001)(26005)(186003)(1076003)(6506007)(2616005)(6486002)(52116002)(6512007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Fee4U+5gPh2hrhvuEcywoJKQsbShRH/MfOqgaO95TmPm9+St/Nn3RkIPnHjO/RdjT7njOErTaPkTSVWAz4GHWLlYwsL7SJ3pmWmBkulncbo1DPyqjmaQA7U/CvaPPj1akPAi6kAqfp9RKpZjeRtKAVDPXxlDkhFVz3M3+puN5OfyQEvB4mLFGts9fuM+gu5rXP3p8znW2FygUUxz0O0WZ90HB2g84kzgFVkWEVoQI1odbTkoKNNQlLp72bWZ1NdtAPqDs/WvL9SXocadaj+Rxvv44vrCIq21sipgX+ewY/4RTqg0mri8PYi6oNY+bX3RvK+1v2XpmWNsmalLikArtrK6hMlo9oEPd+2wTe1A1nBIelsV6WjuDX0DZPLMi8WCaDCi0+u2R8DwiGBeMqVTNQNgMs6zZFX+6X5rX34n7cKjsPZgE8GfxCCdipDSvFa79EwZbFUgbPaYmo0Tu179vv1X1JNJuqtEUs37Kk5mUU9T2UXQlDc3rRG4AD7jS897/dxe3vzR1wgXzUDop6kYFDatKHYtUpc8j4jzQT4WRf56Jph0VA+emu6RDmmMlGE5O1EQ82vcktn0+PwXQ9MmLFn7vO9VpumrGRvDLQb+aWFM837rp22S4tXz5mbqGeBnc1eoqIYeYEIblNk1bESXuTwPz+mk6okKwKmjUNtRlZf8OZv7tOAjGGoeTG0+iQet3K7X+bgBzICREro0/a6UOwTSUQxyRyBOsd4me6XiSHaU8mynzQD7dvLc3sRjeuplhYEHQusMW9ld1ceq/suOfu3QuFDU/YpWL1qix+qxji/4WYubmH84yeo/UdLwbnb6//qtnvjJbPgCb4nt3FjYemaGf/hBI8OpFApQK6D3U+vN0uH+SWvaho0BmkOM7ZiFhna+VP6C6AxNnXda0bS8JM4RwWWYsC9Yx62gKSOoPxNCkC8lOMqJUV5GNYUn/Nt15AKvJ55nk3nv/qKdaNFdZLAeGSQlWSZ4+WO8d9txhCCqI/NZ9WmIURG7OHZSyuzH1p4faeZ6c4UNW3XRQXGtqElO6aw+3OyBC/cuDw5+wf10OnYTvVRmIwNRJEzwc4knxoXbgKkfEhmmLr9sDzRWAQMDNttvOs8L1EwmXopr16oBw0j1oWVnPmtH5G6Re5iuUUxTCcRMcvNtJdVla72p985BGg8lhO/RferDGIZpfn5jPBYh6G069rhBtJmJpNog28GrVQ3Nx8dfYwkWjFxKLpee1hMHCDCf0Yoh9nudit2wjRrdHo+WOW2RW4VQ7SlS07BhJIQCq7e0Tjh8Ryc3Z9raEFZOA/k0GX4VrGfpPeW6z5jQbcGbNSlL4Ns2dII3Jl92gSw9lwZEV/cQPXtmW2psMT1rjdU+R4GlFBw3eSm5x3OyNMnLIsucoAlbT0wuuGy3BSBZXzHnqxJHgRoTwX3zL/eI92Xrvtz56vzcFdeACYBEALBQZ16f729NZVZrjHsY+pD4vO/D2wtGgo1bzDm0ZAZsKo8TsgZwlvuPPcnn+iYIuV5lkKwgLS6qbF0gStaEx/VxemBLvN7Jhu+zEShmmTTbEAk9NbpP8Vi6hljN8b9+PhXIg80I9ivBandM X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: c714cf07-4117-4f45-9e2d-08db7c78009b X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2023 10:18:25.3181 (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: OFVf2hQJZ2EpQDbUNe19bVovSCGihnoEwOBS/Y6oCQPEuMtbAGx7g8hF0r1CExAOmg/3BRVQrtzOEm+CiublHQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB4274 Precedence: bulk List-ID: X-Mailing-List: linux-edac@vger.kernel.org Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/edac/dmc520_edac.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/edac/dmc520_edac.c b/drivers/edac/dmc520_edac.c index 1fa5ca57e9ec..9a3ebf214387 100644 --- a/drivers/edac/dmc520_edac.c +++ b/drivers/edac/dmc520_edac.c @@ -480,7 +480,6 @@ static int dmc520_edac_probe(struct platform_device *pdev) struct mem_ctl_info *mci; void __iomem *reg_base; u32 irq_mask_all = 0; - struct resource *res; struct device *dev; int ret, idx, irq; u32 reg_val; @@ -505,8 +504,7 @@ static int dmc520_edac_probe(struct platform_device *pdev) } /* Initialize dmc520 edac */ - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - reg_base = devm_ioremap_resource(dev, res); + reg_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(reg_base)) return PTR_ERR(reg_base); From patchwork Tue Jul 4 10:18:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13300943 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B72EAC001B3 for ; Tue, 4 Jul 2023 10:18:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231235AbjGDKSb (ORCPT ); Tue, 4 Jul 2023 06:18:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231618AbjGDKSa (ORCPT ); Tue, 4 Jul 2023 06:18:30 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2117.outbound.protection.outlook.com [40.107.215.117]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95EFAF1; Tue, 4 Jul 2023 03:18:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kmTPcxgwdWNfB0+miw1oA5/uKeaXh7UcCj1q3fLtlaQOsqzl1V5nj+UJKU6MEHRvoCVFixtb1v4d1k9gkBsi7sV1o6e9mmX646qyMojzsuQIsI1BGYMtK0n2xAvuxebyNH0UO6AAqABI29YNdOitRDWQYn0HpRQ7v6iYr6m9kKWWRA1mtmqwzsxRp8FkrVx+hEcNVYvkQnw6AwKiP7rPyIxpe5zkaG4Cf5JqBFBcwFSbGEngPUOwHx/OzV5yktbvKc+PdNLJkve6ZlTPPHzjyKQKN3BFKEYyD7tA1T8ZwTm/gVEiFzKgvs8SZZEoSiY1uZgUBf81usw1ggD+KHDzaA== 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=vZ4IvJy94NBTYfpw+R/ZChKvscwppEmPZxxlpdBDryk=; b=XEBDuqUEl7Qe25xl6soZUs9RtV+e/f1vcMC6SnvpKTjTkNdTXCH5wcwWM7zmvS3+mQbwo8agVtPF6H1V/OiftDS8ouXH5hrNTFQfy9BcLdN8qpAD1JdIWITg1qfA6zlD/XayRxjhi6YO/RCiFie2iSv/54l8N46BcVfXXq4EEBp9JEsz6h2nyAMt1jo7osKsPseo7KTtDsFSdYvu0zpFJLObocf3KQB93o3nyoS9Egv279rdbHO+4Sgkg1kr8omevnvNMWZxfwBPNogqJG0lRrOsfYYyhySsKjZViq19Egv3eKgfaan8iO1Q+xA0ZZAWIoeJ3tlR9Dnl2ly1pP8LgQ== 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=vZ4IvJy94NBTYfpw+R/ZChKvscwppEmPZxxlpdBDryk=; b=aDG143VxE3luXlzxkcEvu+EoqR9MwvyIRjQZbfOyeYNa+3bvzWJzox0bLMleIAVK/X9CRaSJGD7+sRrCM6rPbr7msjcKfZtmLM6lc3xy89sYjdD5GBU/mWGcwm16T4+nUkxkAS68YZ6P8gUhGbbJTNTbnpD70FdJ/SUdI6jPA584lkNskbJU4C4XCVUgzczeLtKBdeKaJGkmz+OiIuAx8i+V2tHKsrFoiGzJfl4XQrOciOhTEz0+pX7PRT5Cnn5welNbh6r3foQooLRY34d5HOhLkcTXXmUoUEm/EFn8TZPoq2dL2ay6W3hC+shouq18Z3+nspvU7ntAHuKZaVGgLg== 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 KL1PR0601MB4274.apcprd06.prod.outlook.com (2603:1096:820:66::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Tue, 4 Jul 2023 10:18:27 +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.6544.024; Tue, 4 Jul 2023 10:18:27 +0000 From: Yangtao Li To: Michal Simek , Borislav Petkov , Tony Luck , James Morse , Mauro Carvalho Chehab , Robert Richter Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] EDAC/synopsys: Convert to devm_platform_ioremap_resource() Date: Tue, 4 Jul 2023 18:18:08 +0800 Message-Id: <20230704101811.49637-3-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230704101811.49637-1-frank.li@vivo.com> References: <20230704101811.49637-1-frank.li@vivo.com> X-ClientProxiedBy: SI2PR01CA0050.apcprd01.prod.exchangelabs.com (2603:1096:4:193::21) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|KL1PR0601MB4274:EE_ X-MS-Office365-Filtering-Correlation-Id: 84029ac0-0a54-433b-f225-08db7c780205 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GHOQ+2s9jdxxo/uGsZ8HfsJq6L1vHwnahBUsHgIlkbnGU77R5xTTDfLF8EwtKtEQ+1zphnkIT5+ny8DftUw0/dfThDB4fCjM1R6QqKbq/vq9dWCo/MwnMrVOV6HdZdDeHuQWYL5Rj9AL2KH9XQTJaDwr7Uh68aGIGzM/HOcttDTlWe4H6zGeo3IA1kzwnZ/cU/tHf8LaciG0heFCDD26WOMpI8iFBjfFeGm9HqEKgeH+eZeG0C/ktYgUvlkxpjFBCAjeHokJ+Fj9zglgZsb7lvZJLzJSdwMBDD+U9W1LbkRULK8rtYGwLpKgZzaNs+M+2H552fhnYiGci+BX8jP6+KXkM8earemoCKx1VlFfnBkWlUtUMnj+ZW1QSjz5GclqCLISY/hCjnwHmHahLCu6NjKUbll5ELCRISai3XhkTuaoRIgdzPdfiEoFKclmQ6orqmDEa/XPshaVwg8ra+5M602fQS3/U6ph2SyVfKwA0CeozCx25XNbmaCRFTt8d07wSZkvf/65gkuUZX3y6CWT+c/y0iNPVXq64rHRkfvj89spda0L+QzAw4YIaWk9d1Lxl2EXamSoJsfqXWKOMbPW5I9V4iQskQhiPxlI6skBtVByxbC5NMeAEUIKQzbo58+0 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)(376002)(346002)(39860400002)(366004)(396003)(451199021)(38350700002)(478600001)(110136005)(6666004)(5660300002)(8676002)(36756003)(8936002)(86362001)(4744005)(2906002)(38100700002)(66476007)(4326008)(66946007)(66556008)(316002)(41300700001)(83380400001)(26005)(186003)(1076003)(6506007)(2616005)(6486002)(52116002)(6512007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: prA6Yq1J2JoF7svBQOaILb0gAzSi8PKS94tFZG4x2RoVnJ+7fKFImFI8IkZOa4DX2Xo4rFSdb3j8Jl8hvcw/mRDc08rhskrOg9rA8Kz1MrgmB9noHtFLiETUp0fntQ3oe4CPjKXReRkrIISFdO83hN2hpl3UXTy1jXQY/Hi8j4lHs/9Knf8fvImjNtX3mYBFyc8vGzo8NSSeW4/QSQcPXwj5XbUHlW0nNQ9zsb+u3uAMIgnWMY/Tjau9evHMuT/o/6v9td7Q+M1PXfzUFHO8wZihPpYjmjc5/zdW1fRXQdChQe8hGtuYJS3hTaItBVDjGIhe7vjRL1z7ajvHPstYCOQJCqMcs7HWEHS9Gt6AjF226w7PLZA9iiZPnW/CL5dn2P8GOJ6zV7SvtfYl6GvrsO6XqTpo8ALP+mIcragxroGTIONMLKYI0sNLM1404lOe4Dd24Q7ukvjEGCAcvCeyJjXTBq6mnjJngeIDUPKZZX5/uvsBU5YS3l4d++iAVKkNTL0fqoPEqfbYbPtN10WdefGHYEjlwiTLPjrofltzuy7VPuSccp2ExqvgQpyQF1w5sQzwN4b43MpZawXU68luIlVZB5ZR8M6knF2KdUPPdRKC17NMMz9qNio8WJNuUxSQC+auvSy4TwpLzIWH9dM7Wp+v++aqJyb03TGwXbRqXI6RMK0YHeK4NqcVIwQfekbBY+XMVgPuBhMGTSxNzEH4ckiBOwiViu8RNMKmyBERRODnaXrhWP9aIfUmkf5DdlsDxnzrz6W9bQL24P84gM/GDRpVIOyp7NPpbvKNTQDGw71mI4/f57LKlYxO0zS3zOKDry6N4aRZbIgR1NTzPyumcxumn2/zbyc35x4QYENF8oWnH35IUh7GP0dZbugDrJDo+hgRWXn5hZGBmuwLbu7X6EJq/HAUvIHsIQyAbmFcZCMPb4GVviRuC4e8LKx0JTXTOzf9NFLE208sDJvjPlNjl4dp4RsZksXM1RJo6YAq1O+jSQnIEA9nPHiM9L/lnxxvUQbejh+lT61svXU6ydbi28/DvH7io6zohrCZ1/tB3O+kkDyz+QP5QvuqiD6VJ6FqHck7IyTCyl5IXrvKq/g23Xjyl5c79TSPmjUex8ZjgJ9D5qg1YfT7FQ4uko2QalvWtjOvNzT3ayBce2QmRe44zLmuWYJLVBMwTuLKUsy1JPnYo6Nfaqy0nD5KxwB2ShOmbPnIS5iDrKqNF4QgiIc69wzQxJNWzs3RiMgJCT50XMV8mvc4MFuo/sIck1SZPG2BTMXffwOzQr235TjBNx9QmIdRbTQXxABD10dfyfPaH3kbkYra8HgvFV/YjE+vG5i9C/uVfFqYksljNcHQDvslrpFIg94mhXLtytEjDucF3VddnJmwOoTvyBKC5c7egfZXqVOxxA2nbu4fBDO8o/ct50j1vP+UbleCJ/9f7o+BNVJWNenhlA+2A3oSAAcQnnzVydQT5ATWCtptX8BFUs9KCmlUELUSzVmNRAcxbHybU/sHLQS+S5fev/m8Z6kI/rID5t378EstT27G6AmyiEtTvMank+cx3z92x6K/bEIuPR2jmo1plw/pWg/h2WnA8OO5 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 84029ac0-0a54-433b-f225-08db7c780205 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2023 10:18:27.7405 (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: cS46lUszStWPuSMlZLTaxaNcbDsXmqaNY76qHJzxe5kCt5GuHbtl0LR+I/inq8/j0qjp7lxzTtmyssLsjdBKxw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB4274 Precedence: bulk List-ID: X-Mailing-List: linux-edac@vger.kernel.org Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Reviewed-by: Michal Simek --- drivers/edac/synopsys_edac.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/edac/synopsys_edac.c b/drivers/edac/synopsys_edac.c index f7d37c282819..620861fb5231 100644 --- a/drivers/edac/synopsys_edac.c +++ b/drivers/edac/synopsys_edac.c @@ -1325,11 +1325,9 @@ static int mc_probe(struct platform_device *pdev) struct synps_edac_priv *priv; struct mem_ctl_info *mci; void __iomem *baseaddr; - struct resource *res; int rc; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - baseaddr = devm_ioremap_resource(&pdev->dev, res); + baseaddr = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(baseaddr)) return PTR_ERR(baseaddr); From patchwork Tue Jul 4 10:18:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13300944 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DEEF6EB64D9 for ; Tue, 4 Jul 2023 10:18:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231703AbjGDKSp (ORCPT ); Tue, 4 Jul 2023 06:18:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231134AbjGDKSg (ORCPT ); Tue, 4 Jul 2023 06:18:36 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2112.outbound.protection.outlook.com [40.107.117.112]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CDCF107; Tue, 4 Jul 2023 03:18:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HuOzv4Krs+tl8DQdQO3IjHaA8JHS3+IfBL9RzhjRMDQMaIRcuR4SeVqPK3llDp/7qrb5r29ViHkePA4290QPBCFH0dlN0CsMP7h4VHDu1TTkiWkoe6p+B/2vK4US0QPgROcb/lr2ZXK93PyE85PKOVBzfJkDdFFZlVy6uWkioX6ELddaSI8chsGQBflWYgNmi1www+8jVip5c7X9zCRXX+vGEkZ52svlcLJLoaaII+8NFRi/XzkJOHnbgq6Zshxxcg0OptbvzuZ7GWx7GAtKldDvlGdWyezYcYe1FD+39rLe+E4siFpmAHoWHW07hXMnzFmPvyXgoFfRnH3Kihs9eg== 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=VeJYHVk7hRz1R3iD0xTjqT6YET613q1QKHzKZ94ByfA=; b=aO4zjAUCbP2IxkzS+H3zGao5EGkVXcREDcVQiVKhEbb3u1MLyA4iRDFBfngU2j83dhTUzYNRtsq1CZiSnEwkrsZeant+ZTIpfnk+mfRWhKMV3zq9AlIYXjSIYD6gbaN6KUZDK1/dT0nCw1oeIamQt9I39l0AmSYr3e9B5AZ0ESU5Ci6BGd56agBQx2vHKXyNOzQb5IiJJYldFoh7OgrlF0n6GV4Q05W7jrjH8MF8Fuy0YWpZnB2GQoCOqTx7Z2GTvLNrGfeC/Kj/ypvCGS+Ou67VLM3/wwkQKt8xeDQDxCewfnQt7sNfc1k4dIPZMvhVp54JPwtPB0B3DWJJCe5gUA== 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=VeJYHVk7hRz1R3iD0xTjqT6YET613q1QKHzKZ94ByfA=; b=TwemSCbuokpgBIyHkPJpoGJiHWYNniHYezMvZqinCF70FWTsPrpGlX+chP6VhUfHvSD6fQdEEZ8YXe5SS5dHySNmny616g4O7frdibVUD0vpnaVA4fDHwhL27RuDgwgwHkCKDxt3VMC71yxYyVrvRRTWgc+n7v9IbEDSmthX+0Y/6lNBE4KxLCWJJiJM6OCxUYUfOuhn9KAOV3op/iRvO+8JP9NWWd12/c+dHX1RQUKh4XI+3TYHAreMbcO2O90LG0SnISd2Ud8Q7fh3B1YuCbtpyL/7KuUI2PuaruvQS4Ukz2mVwRRyMsSsNEigp/r3LDnDBuI3XMxhXXodDKb8dg== 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 SEYPR06MB6036.apcprd06.prod.outlook.com (2603:1096:101:da::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Tue, 4 Jul 2023 10:18:30 +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.6544.024; Tue, 4 Jul 2023 10:18:30 +0000 From: Yangtao Li To: Tero Kristo , Borislav Petkov , Tony Luck , James Morse , Mauro Carvalho Chehab , Robert Richter Cc: Yangtao Li , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/5] EDAC/ti: Convert to devm_platform_ioremap_resource() Date: Tue, 4 Jul 2023 18:18:09 +0800 Message-Id: <20230704101811.49637-4-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230704101811.49637-1-frank.li@vivo.com> References: <20230704101811.49637-1-frank.li@vivo.com> X-ClientProxiedBy: SI2PR01CA0050.apcprd01.prod.exchangelabs.com (2603:1096:4:193::21) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB6036:EE_ X-MS-Office365-Filtering-Correlation-Id: 6e4ea362-4453-4e55-461a-08db7c780370 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ET8bU62SprTEt/0vrLJHG2Te32stvIN59YMs0vxHIVf1MNqpNGBMQ1kq3+zCYlwyNQpmrrfjfaCxNFGZKp4f1ascv0FRWMXzMFPVe9UQKgI1LFYSnMOgTHps4zG6fftr9y7ZwnXK+x+QAtOkUiApbQ/eeQ9U8+pgniEiTyLjlrqKTDoQTm+thotn5TuAY7KO6m5KIXf74y6ViWGuNvsJdPFZt/slMLaJ4neTyAgSE82OtqIhnLEzGKIWEUMepCW18fbJTnJDNBSQZybT0vtlD4/bcv347sA0O6UpFVhyct5le1ZpZPVD4x7PbxIOvtr638jkmnwc/Jy9Ss9RBmYcS8KYa36ZeJYNKsWcg1yn8DQ1KiXVaHHxkopJ4dJxIIUGZ8eFGtOBPTLuP3evP/YsDue8Vc+dVvx0HFYdk9VfzfMvkQT/licX3seJrhGT6lJQY4w8sJR+9N5z37atOnB0PsLsz5/IBNLkd5iOxjTj28BSFotay49BQXrrpD0bxBt7W8jIoEupX6FJDD0ntjXZNQlQc1Mzf5m1cGkNMMo7Dre7UUwnem9ZoQ1inZF24HJQvzS7Al1NDRguC9sYoDg0pVTJMzPxIui8r17PiAMH7cnI662/QZNY4MpUCD/vMVpN 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)(346002)(136003)(366004)(39860400002)(376002)(396003)(451199021)(4326008)(316002)(66946007)(66556008)(86362001)(186003)(26005)(6512007)(66476007)(1076003)(6506007)(83380400001)(2616005)(4744005)(2906002)(6486002)(38100700002)(6666004)(52116002)(38350700002)(5660300002)(478600001)(8676002)(110136005)(8936002)(41300700001)(36756003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: X8qKkXwhoPmPKIrTYuZL/nxAvIe5MrWKr3zgB+4QeglibiBwN0HgVnQjR6YhMmiBogK4K6aKXt/L7kPg8YZGH6iwYPCV+i3OTN+xuBCsUVHkr9uj4XvoDakzAk9XrMxDvCkrVKVvQfPi0Id8avXU0+YJmE1y+Nr8sHOyYHDOnZJNwdORVvYB8mHQrZPwVfyUfqtSWqwEEMAl+XbvlJ/JrUhd9OX3CiDe1tIq0NxxoiDKBP3EMfzKoQMniwYKZrkpqq6VJ/jwwS28O2I9PFCKr5OksbYYO5ZaC2sZHC5rr9yXSE20KTbx+Q8iGD1Nrd0WEbLhKZy+O03BMwsi1P6WoTm7TnFWtbJpy2gSwyioF9UVfTdxHPLCDj13BM1bLiA3jZRkxq7ZfZWk0T2hYqnvJGAAZnWr3cxnFt87W173iUOOtOPXzQOAUgvcYn07Vem3WQyN9tep/6VhLFYLBwIquHD9miAStNj2vzdtMe9fb+Lx+Zw2yrlGgpR1MEQdybWrI8q/7CeyXM6MZkDZgipwe3gBKfuzVAP15XBpW/o2NWjMiUwoWR27/GNuGLS3kpTOvKdWMR3LvoU6k5Y39Leqjf0JL6goiC9zeXTVfqS1HSiNhiShkbVP5F8aoJEan4DwKNv0Sg+NVBpnP5EASokdZd4/2lhioq2yC/6pVA1Pygh7b3+eABOeShdx52OUiffZzHx3IoCS9Yp2mjqG275h4WGd0L/Cm2+YHcGF6HrcTEuPWp9Y6uukPb91EAB00Jwkv05+2ytrE0dOzYipNOhhG7czez/jqNSSRbyGFZo80Z7VvObjZXbCz1v83uTEveDUuFWHcE5BEOUell1BEtl0Khoe+rYlZTJdrpb3AZnQqfG3hE3mhShXmV0aqSUmijdwDbaRzNTQAqy0X+EYbRKCNWB9vzJgTQ3PPHuoqS3G6t2bXWZtftcf6L17D0+6Qqyhal/hPfGJJOi8z3tmAXkPvQc9hzC5vQZdlXzLSh9/KlZ4xKfI1vPNUuHzxqE71UAxKwdf4bYzz7HDBKZRGvELqKypti8nqaQH4tiHoTmF/bf+HUhYblzqwS//GlB9/KsFADuLyyOD5tahd0Ni/Oxf/EEMV+Vk1B7S7e62M9z7VT/DvyoNVR2wTTVdsi9g3GsEra5JknYsKWXqjC9OVp/y5A20EWKDg1jRrAnW0uAXVB5wXysJfTGAaQKMQWcvBltY9S7IkqbktJjbxINrtoxbBF5uLs0hRkCHJDGFS3ZxpTmeml0b366nU/8aU0nrsakf/zfwTNIkUBk3Za3YPc/4qXsPVlVsAt94z0wv0FJcK4OwULlf4K31Yyv3wcVPMlXUqsUhCnoCYV2beKb5fJK5uIBRgI6jvGrhwO2Jd7odctssup+SGBstKo8gcdFpwDYDlBRHwD8Vqos5rknSL4dtkkq2IiN6VRF3wI4lEfmyZi1fo3XFxuKFaDd4bJQUXxL5y4vI4vdsE3BBM6GGuFRcQnwttTswxER9t2zFhkq2Vy3OY1yMxpNVDcGrDY47TR2d4PjvFWSt5D3ORlw8AqK0TTpSFwLu7QxUJ0+yNlOJGraqvOKVSeJPItwQTEhJ9pSm X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6e4ea362-4453-4e55-461a-08db7c780370 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2023 10:18:30.0705 (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: o7I5dnE4LvUmWHWnKBoPAXxjESPXK+szC7pFI0IH28Bt3D+C06wc6CpVkd8RtZfvMzyTr7dH5FsTT0FrMA7LEA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB6036 Precedence: bulk List-ID: X-Mailing-List: linux-edac@vger.kernel.org Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/edac/ti_edac.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/edac/ti_edac.c b/drivers/edac/ti_edac.c index 6971ded598de..deec2d045e8c 100644 --- a/drivers/edac/ti_edac.c +++ b/drivers/edac/ti_edac.c @@ -231,7 +231,6 @@ static int ti_edac_probe(struct platform_device *pdev) { int error_irq = 0, ret = -ENODEV; struct device *dev = &pdev->dev; - struct resource *res; void __iomem *reg; struct mem_ctl_info *mci; struct edac_mc_layer layers[1]; @@ -243,8 +242,7 @@ static int ti_edac_probe(struct platform_device *pdev) if (!id) return -ENODEV; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - reg = devm_ioremap_resource(dev, res); + reg = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(reg)) return PTR_ERR(reg); From patchwork Tue Jul 4 10:18:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13300945 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5361EB64D9 for ; Tue, 4 Jul 2023 10:18:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231690AbjGDKSr (ORCPT ); Tue, 4 Jul 2023 06:18:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231696AbjGDKSo (ORCPT ); Tue, 4 Jul 2023 06:18:44 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2112.outbound.protection.outlook.com [40.107.117.112]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC6011AD; Tue, 4 Jul 2023 03:18:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EYEKrtY03UvgIDttvHu9jMeccAse0ywKfWZJkAfr4EB0dsl2XRNyFUi0SpcuUKKkJ44Jb9xa/05IAbUl9lgb+sEhR5a95Nmd82m56bBG2jt1qoewikbQEIYRl6uHHklmhKW2cd60KPiqTNUP+nTJIsZH5U6BcLARg3QxiohPx2G9wF/DFvRSqerDh/rbEvRnrTO8Z+Qzk7X9XsacCUcYiwTBNl5YFfWnuoT3tmp9esF8d7O1Gr1bTpcqOHf/FWRdYjqexbPWsXDhwIRF7F9SBh2hgl/IZY8DhZzUis1w1HOZ33aXztjYRdRDcRhUR1o/R6jDcFvQxIw9pEVicPw/FQ== 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=V68J+9ixv0SUBG8zH4xtep/QwhChI0iWjyd6h3+O88w=; b=JoPwS11NKBOEnH1NOgmdf8QWh0mdYB9GAruqlWnv7Qp0H1W2gkWDV7T8YLknqiL3h/n1UHH7/8CshqDWJgzyMj26FKxp/CcYXmKz/vWShy8tZOQIwSy0Qw34Rl9VQXTQtbgcIgwbIlHKooRTAyQK0gzLxA+I4x8ouLMZOomhqssF9NHYkpbU8AkCs7G+LGd48Et11Gf7yKmdFBskt25UA6kMVPLhR572iseYpub90U3EzjdpTJo2bdvGcouGFA54pHA9XFgcOE0h8rWHRNFnOiqBYoMdMnOvTubeS4IyEChjtfBZWi/SW3H1NlotjlBw0U7qSRzd/vB4IfTITKdzMA== 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=V68J+9ixv0SUBG8zH4xtep/QwhChI0iWjyd6h3+O88w=; b=heYoqMLYvUpdqD52+01/BFzh0XrPs3D4+QQpFedu7qQC/POnX9xu1WTx6owXed7J71/beRWKdgjsOX4RbUV9kfs2BmQEOW8UvhG8lyRKCj3W//i+lNvcuF8pGWsrvOlpvsf8+hb/ZOYJqqDz2G2MHAzer0f3LAR58/1fVpbfMa+11B2tEbGaWf/uUM/4zYLeIuI/dvVTeti2DuuGxuflj7+TieptF9QICPRVkukpGVHBiB/NWtKwlWMRhEAD7gxN+Qjg/zHA8nuwUdLtCpqBKe3pMIiO/tdCEzoxgZ247rQh4bwqttqHELFrZOLPTH5SLbuCq6ja8aKRH1vMGi3lsQ== 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 SEYPR06MB6036.apcprd06.prod.outlook.com (2603:1096:101:da::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Tue, 4 Jul 2023 10:18:32 +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.6544.024; Tue, 4 Jul 2023 10:18:32 +0000 From: Yangtao Li To: Khuong Dinh , Borislav Petkov , Tony Luck , James Morse , Mauro Carvalho Chehab , Robert Richter Cc: Yangtao Li , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/5] EDAC/xgene: Convert to devm_platform_ioremap_resource() Date: Tue, 4 Jul 2023 18:18:10 +0800 Message-Id: <20230704101811.49637-5-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230704101811.49637-1-frank.li@vivo.com> References: <20230704101811.49637-1-frank.li@vivo.com> X-ClientProxiedBy: SI2PR01CA0050.apcprd01.prod.exchangelabs.com (2603:1096:4:193::21) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB6036:EE_ X-MS-Office365-Filtering-Correlation-Id: ef605347-d95a-4051-6d73-08db7c780511 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bbT+zkAWRsBFdyVqBAh3A57vzR/Sa8XbD7uq+Mk2IYKOtLUsBlJI2pQ2S5YRXiQNkOBVFJnDbdcz/tECSChUiZVueh/mu0Y+tOdH0RXOPWza2kKL2iTZ6QxSE9tFR5BPu3Q6wuz+H1DKF2Jq7T9FlJBKWQ3KP6ocMNHyNkniOayo8MIodF7j9yoCTkVfDmEyfdqrh3G01z9LnIeJ5L4oSq0D738dNo2DX4dTDwF7VC4aQPc0cBtR1yMnbkU2TuLiGEQGt0vu5ppN54n41qMQYAk/zjWaDZX+9ivld9qtpEamJxAkM9pl1qMhk/bsrBlIo0Os8ttDDpEHq1zAMBTN4Z9kuzdFJlf/N8YoO06WCIYoTiZhTLAldg0b47X7nrLmONYfYiSjUSzTBHCO+edK6VG51mM+JDtleAR8w6vzveeKgwBVUNjDthMDfRm5W1ZuWZDl3yk++ljmV5jjPBQ+coD07bUFoIrgmjH1c5rofZBr7vw42wfEHo5AlIP86FqOD+0moMCmj736xZNTClng+Xsp40YO7/qDBlXTqFMXXNjBTe2ReRw17ouaOWUQuqA8ZgkHRDIXSsuTL7F53zdzsN5OJNNJHZOHLclXGXgtev9nEuXUiWETx6An7UIDbEx4 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)(346002)(136003)(366004)(39860400002)(376002)(396003)(451199021)(4326008)(316002)(66946007)(66556008)(86362001)(186003)(26005)(6512007)(66476007)(1076003)(6506007)(83380400001)(2616005)(4744005)(2906002)(6486002)(38100700002)(6666004)(52116002)(38350700002)(5660300002)(478600001)(8676002)(110136005)(8936002)(41300700001)(36756003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JdPVLUOPhpZlerQZUQ9BuiEthZnBMlde9yHxGcHgny2JRlwzxxx/F6KYbdSM3qTVe9OBJwCq3FjTvZK/mXH421kHF9Ud49+nYgJw2N3sI6YaeeQphW+tiH9dRaAruTePRe+xyoa5r52O54gbOt3jhb5Zxe2f6VHOqaUrjitVPsAyoSGku501ecEyVRvM6NRQPtueoTzfXgpSJ/3jpr9ILyCg5Op13AFhKrNOR+mNEGMKJ3ylJH9ApH0pql3N3vvwniMjneMw8XujFblM0ll+1dEow0LS6l8kY/tiO9T4Pka25+nmFtWJ3pa/x3+z89m7g78Xkx/NQgwfPpfWo63wnFgkrIHKBC/yHtmhvgF+tkbNv81XypzMSQw5CfftMBO+nJjBviJbA42OiUBVPCM0s7VGFICupslnCoYTutqqVP6Xg0yraNw6qo49l+xLyDZziG+IfMl6t+5PL4J8hSuRXapuS67HpESNGyyLZcFT17bJRqHXIPLmy1CSk1qeIBXIac5tT0lfGJoIOI8GAvhYpqrc7CiP1KVRNNdwv8s63goAvVeWPj4q4XCGoJgXqrW+/8+CradPM7aHezTppqHp4S4BZ81f6l2/7I2+ML0WCouhtF5PIlM7n/t0FvPlqckeXFzSrJp7yaTwxsOl1Tw7AdCUyL4RWMUBZrDVu/whWZZrJm0Wna2Qi9zEUkoT7H4uAN8CT97998xfr2luStBGCL8m9ljUWWMGIB3kAt67Xy6XW0LgiCrp0MQCMjjDNpcKs+aPBFPYAM3H89SjEhTS711VlIXLbgIp9VLd+2iJNrdIuhD2nSIalI+6VvkLXGc1R7ZQHKdaY3SovQbzR3RibpEO+77k+HuPW7altEwGHSKLylQldD+9XhO/M+Q/onRVi8KuOP31t2TzTOT2YtnNCBb9idg+FfR8MW3U+b25TiPB6Qr9t5IhPvQNA5yNUWnsG4q5919Izkz1JvvvaPJylxLFEWGA3KXNElTvQw8M568qY9041cHK02z8zm9lWTroyBIOCZ4S+NMyOw4lXPEa6COdtQK246llc0/EId3dcxY5q37C+kf2DQvDpm6Nt3uGS0C5l5msFWL303QMInvJFBrIzbTrSX4TI/NAKi2a8X6j+v3noCV7yMDbR7WsGf6/tBlIpT/AJ1CsZDeAHWDxhf41YI2pUOwafD1vi3ecpsZLWJqaxGg9a4KtbUc11iq7iwhdTWGA5nvuGTYY+9UBXLsnWN2CQi/oLHO+5L+uICMQnBtx9eyvd/X5ChbAZQa8t7TTomIVcxhoT2BHMtRr4vpcZnLJmE2t8mWte8hGHh5Cysi9Cpj95hrCW/4dI643rXLLPVBQQJJ3Gr65egDiMcCKDiiyL9CRZ88D8AKyGtvxKAhzPGHFyKY7vYkmjRLxKtQu78VCnYE8ltozMUwatDtOMZUgmeX0roYmdiCE07jNoiKMtHkOYcBLQW+PNU6lHpUSRdnSXU6HlztCX5ErpbLomDNgoZYtCVQd/c7TA/UwG07gcRW86wJcuv9R6KiliW73Xkf8qscpEtPDuRtodN3JROhUNdxeIekY6OuRcRj33S+Smk1dPnQcW9kAFKTa X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: ef605347-d95a-4051-6d73-08db7c780511 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2023 10:18:32.8198 (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: QSHWPr89dLu6q/eCU0ViC9HxHdzd5cCRrxP8zU5mrJ4jkj2rkMfmKaz1qsDRSMr8HJ4mjsQ4e3SthtQg2xm1vQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB6036 Precedence: bulk List-ID: X-Mailing-List: linux-edac@vger.kernel.org Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/edac/xgene_edac.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/edac/xgene_edac.c b/drivers/edac/xgene_edac.c index c52b9dd9154c..5ac1a0d3495b 100644 --- a/drivers/edac/xgene_edac.c +++ b/drivers/edac/xgene_edac.c @@ -1845,7 +1845,6 @@ static int xgene_edac_probe(struct platform_device *pdev) { struct xgene_edac *edac; struct device_node *child; - struct resource *res; int rc; edac = devm_kzalloc(&pdev->dev, sizeof(*edac), GFP_KERNEL); @@ -1903,8 +1902,7 @@ static int xgene_edac_probe(struct platform_device *pdev) edac->rb_map = NULL; } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - edac->pcp_csr = devm_ioremap_resource(&pdev->dev, res); + edac->pcp_csr = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(edac->pcp_csr)) { dev_err(&pdev->dev, "no PCP resource address\n"); rc = PTR_ERR(edac->pcp_csr);