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: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 115703 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1125058vqx; Tue, 4 Jul 2023 03:52:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlH2F+llYtI+XGKyr0OaZe1ToEJNa9Y7ccBa+3icpt3ueADWn5C1h3xB/myF287SPWJ3cI1P X-Received: by 2002:a17:902:dac4:b0:1b8:902c:f8e8 with SMTP id q4-20020a170902dac400b001b8902cf8e8mr7755908plx.60.1688467933853; Tue, 04 Jul 2023 03:52:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688467933; cv=pass; d=google.com; s=arc-20160816; b=q5HvwaW1/+83wlp+IIh7XR5y5Wey05PWDIl6N0g+s9oweH5c8cNYze99+e4Nypkuqj P3i6fDDA5I4NfJq9HJ9vD2x8DSnmefBFjl7vK8yCeIZukLR+6JdLB4aRAGAjRoyvhuQ2 qOlSX4tS0NYZl3if3WVaezeIGbyoOqhRpeC6AUWTANtdbHRubsh0HOpuu6mbBDycEHU9 7RvOCGyC7X3U7wsZL44GhM9Mfh4xWVYGyUOBEM4/m+u2VWw0PtHeF0hfR6WWEZTNbEnF UnKcvLwWFlXE6gZGH2L3fHBXh0E9iJHTmOANVxRAPgHWHiZMFbVfdBa4x5Xg0mhpCGUN xHHg== 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=NL5pIPf+/mXW4lCMlTg7APBdCAO+2j68pQWX+FYKsw0=; fh=L4jcpR7nRk9svYf81bnw1aHAK+cIMsSiT2/gXW79ZMY=; b=dqYNHXpBV/uZcoO7Gj7A0x5ZlgGJUxEqD1gw7s4SkhhU3PSb41NnkBfO/S/b6PJRlp 8NEGJTefyE72ja5V8KaTRTMs41CpfnDuA8I+kCida1rR+YJtGPmNucCOauwkMHkJ4/Z/ mpL2AtjkjcDB1veydMO+wvMAu1T6RyJO0QefP8zG8XqToqi9sSroF4kL8BQdxPI+coTL EyC1rFK8BW/QyrZfxDVhY9NHs6sNQJsWRxryvwYatMP+p1XBxygl2DgrMZzZ4SIQ4h5Z T1jie+9dyBS5pQywK4q9Ou36haCTVLMVfQGsEnSng6E/AwpOm9bRCw1g5S/PUMUEUtU5 85jQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=pLBQKzzT; 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 q8-20020a170902bd8800b001b02bd00c67si18849076pls.324.2023.07.04.03.51.59; Tue, 04 Jul 2023 03:52:13 -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=pLBQKzzT; 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 S231627AbjGDKSc (ORCPT + 99 others); Tue, 4 Jul 2023 06:18:32 -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+6X5rX34n7cKjsPZgE8GfxCCdipDSvFa79EwZbFUgbPaY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StaEx/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 X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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?1770486952278202907?= X-GMAIL-MSGID: =?utf-8?q?1770486952278202907?= 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);