From patchwork Tue Jul 4 10:02:53 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: 115683 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1109586vqx; Tue, 4 Jul 2023 03:19:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5IsvrDBWos6auBA4NO+4XrsN1wVcHPWrAyWc45vxLmnAAl3+adsrK8PEwrZvy7eVALZC/5 X-Received: by 2002:a05:6a20:9695:b0:127:4fb0:d448 with SMTP id hp21-20020a056a20969500b001274fb0d448mr10416761pzc.9.1688465941646; Tue, 04 Jul 2023 03:19:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688465941; cv=pass; d=google.com; s=arc-20160816; b=nPpo8NWvNXPtAAjjhi3iPY/2YqSUG3gsbHAmLLKTs6BqkjY/qa7iIRoPaBlbMW6P9I Vvc7SyM41Hpy3Poalb13JMBiEyi8HpMmnbD/zHc0r/Nx6t28nsqAXeXq2bV7B6Q2SzGw vBhqqsCJi149BPo0rIwRzbuIvyyrVcp3A+vHvHGc/lWcOvfjActX1eePl1XyCEzlm37V /ERHaQMf92IOpFZ/+65RRViCrvSz9JQUKMfQ8Nn1AD3HJGacozyISnmsAtoULp6OydK3 3ym6FfFc7UyOGNCxqL+nRNk+mV0A77ypZYMVb/TYw24Ggh3U0B9yEBHxDqQq/gQq6caz 4rSQ== 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=7DPBRD+streW7SwJaKb7iWkU23xC6zCLR9zk6qh1oxQ=; fh=JcjYArBZmiDTYMdponEc65zL33fqrL/tSC7aq4fG9m0=; b=VbORoZ/fmYn2ZhVQogzQLHRglxTi/6MxsiqLan1ngo03XQYX/l+7SBtuslgW+Ch+KN qGMw5pWCIHESQrxfSDylAh3dt4dpEwa0y77GlAJxUIVOlXHSZ4ymNgBScuM9dKC2AWu3 4cWR0OTm/TAWJ3hlU6yT5FAeM7gsv+YcssrRV1z0P+6Wy6IW9QPIXBlYdgtwqBhrkUQ2 KJTIVlV6KUcb0SkoyO9/Omc1V8nHyOJlZowtqKUZWVipq2sowBt+RZqnMTUzaUrShEDV RusP+WoWZhW+/wE+omhFxGi2zHr3YYq4ffd0dsXaRW9WaX4hCk3Xe9r1tNj+0+go8pTS mGvA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=mNhO33rX; 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 l5-20020a056a0016c500b00668718e54c6si21314495pfc.202.2023.07.04.03.18.47; Tue, 04 Jul 2023 03:19:01 -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=mNhO33rX; 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 S231364AbjGDKDf (ORCPT + 99 others); Tue, 4 Jul 2023 06:03:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231514AbjGDKDd (ORCPT ); Tue, 4 Jul 2023 06:03:33 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2120.outbound.protection.outlook.com [40.107.215.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9107A101 for ; Tue, 4 Jul 2023 03:03:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cIoePlV9vtzOAUaU5erWpL730ryMYV6+PvCKOoJHXerG6fzePoyqkBnPowQix4ilvcaxYPwlJkoiTVJYMVk7CjWmX0NDvOyXigrFRB9QMdue9Vjdenulm70CtfMqy23URSrfw8cbZ1lMqEZIa3AqFiHDLBQv7gdzsnZn06ySkq9itJ5QAxXqgl9whqqWurCOhU1Uk+6TLqjz4bZJFumpPWFKIoykh70n+YSwfCHqPWRimco/NvwdGLb541kGNEIdgH0Wl4ywO4Ssiqd1NUIndJOT2QAF2PHhiNymahZFtR9q+iaXr/wnvgbzL87z3hVXoLRd/Cxm7sTH7VGURAr9sQ== 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=7DPBRD+streW7SwJaKb7iWkU23xC6zCLR9zk6qh1oxQ=; b=BM9zrOh/Pk7Fe6Ont+dQ1r5wjPp1wt4BEZHl+806lrHg0NcdFkaGSFD9pCRuZ7RvX90ZQprYoJbm9kuqpfbXufnck+2wc+GRXXk3lZGOun4EGTOJVfGGA33p50MHNhG/+tTgCeKBVsNVbIipCjjmqgyRFWT8RlTH1oqSLvPIm8J+Ovax1fD3FznbwpSCwlUkr/cBWWLvOXFIBcA60Puo0mCxueY1H5nq7GAvIcyhG36ztrWO9+IJNFFRud0PV6W0PEye+H9k1NdQv5LVndztS2hI7YWI7Rzg1Ztkl+zPisvm2lxcfOq2cc5HkRdGotK6NiFVM3U9ZNmWHsmCK36/Bg== 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=7DPBRD+streW7SwJaKb7iWkU23xC6zCLR9zk6qh1oxQ=; b=mNhO33rXCOKAyGzxH1T33eD4rc7iMYqvIPuWjj8Trrw5Vfj9inflwzzlsFcEEPIKTQ/Lu77g/azG1ZQy4wNVHwFcV+FI3e7xnX6WULHavOTn03rcgg9uFMJ5/ahlGk1W+Q5zA08mKK9iTXjhSsyBoH4V2hbdDoiNPiXKaIMI1G2pSQHHhqEvd1Kfp+bsrx7nYPj9f11qZh5d5xUBX0IL0ChjfLQAATt3xubJDmhjDMWVa38/u57As6wP3Gss6hWQC5nxxBUqXuI/7efy0xrcSeUptPYWKOib+i09q1+B95aTfoPsQcal3aLLwMaVtNnfhf1lVo3JWNwFwvnsrsF15Q== 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 SEYPR06MB5767.apcprd06.prod.outlook.com (2603:1096:101:b4::8) 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:03:09 +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:03:09 +0000 From: Yangtao Li To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Thomas Gleixner , Marc Zyngier Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] irqchip/irq-mvebu-sei: Use devm_platform_get_and_ioremap_resource() Date: Tue, 4 Jul 2023 18:02:53 +0800 Message-Id: <20230704100253.36045-2-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230704100253.36045-1-frank.li@vivo.com> References: <20230704100253.36045-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR02CA0020.apcprd02.prod.outlook.com (2603:1096:3:17::32) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB5767:EE_ X-MS-Office365-Filtering-Correlation-Id: 2407e07e-0f19-49b8-0fdb-08db7c75de49 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: azl3KPMc2F/FNbmjSiRAmT0vjdJkf+qSyH/Wz3ULMw+RbKBIzFF7lOXAZqAgFpUdySxhb9zKFjDDWKsWmmhigzG/HRHFsosFkK9JccG6O6uyGNyxbShFR6W6IldHxzNWz4+wcKLeKyoqo8ZDicUQt5vmu1nWzQmuHkPTPHDMlG2a8oO3XsVV0W+b0ZYCpP0rH5Utk9xF79oASxlLXiCI3jfd/PkAvx/F7Ld6zULnBXaW/1GEs1jjeoORfiqmfW/ZCib/FRjkBYjtiVRD+FScA4t8AAtkrHJfU2w5LxyziV9XlD32Lw7qFDSEh29TKF3srWcLDzk7VVQ2K09gfuskcQIq1/WJ3EUuj9WUTAC8X6KhgJBHPLJqW/0d9eDUXDXE+zFrRIOz+S7bAjet5niyV2bYx4sHqBbNgpBv9wt2U3qOiCj2TFQ5oPpkz7powUdCIgu6Q8iBvM1DiFdyAp1IDM/VeJnHmlQuq5VcbWObGd7aQ088hjFdp5EfIWceGwgezfzUieES+P68blYZJhKPQTbIyhZtmL79L36EBhFTnyzkdWBvNTRwZuyRhBqbFl0nyVerLjNNq76yQr2WvF/x2QwOIpst+3nNY/w8AOOU9lMpUWtcxnNJSqw2neYboDXl 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)(376002)(346002)(136003)(39860400002)(396003)(366004)(451199021)(26005)(478600001)(1076003)(6666004)(6512007)(6506007)(86362001)(2616005)(186003)(38350700002)(38100700002)(66476007)(66556008)(4326008)(66946007)(110136005)(83380400001)(52116002)(6486002)(316002)(8676002)(8936002)(4744005)(41300700001)(2906002)(5660300002)(36756003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: VLYTUHXNm+5b2AAUZkkTiDU9JXHCglssF78jdyIgRA6H+xsK0w1oBax2JevrwLq51eoNZnQ2plzMsO9EYepZRKQ/8ZLmetSd6CM1gsJ545RjFYW9DnHhU2Qlb4e2QrXsVP9eYGQQxqeTSb/e1PzOBDd9TmCyoxxV4PcbMKCuMmgyr8Kx5SqmUOMnpR5H1odG9a2BLtI3oJdcXNLwQSg4Z+8oreMK6rqBN2GcR60QcuG/Xi1w6LorJktodtuHLGGhBKzGJTtTpRBxVQ5gU3BcTpvLA/o9OMpoEkOdYEWK9cmy8M85gB5uFiY2qbBnXWTo0uNJre4/re/Wf6EDoeeYhiqijeZA5GMOPYTBrEaf1OgdzsvMxMqbD2uCu7MdUZUkECfu3qpt//Gy/CR+b450/rUkmoJ+SLPPRR0zu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RVpLEFcqUlA443Cf/MOIstlU911PIwz/p/9zgG+0KruzjPJE801k/T2nTVryVOAHRS2N3gYwo X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2407e07e-0f19-49b8-0fdb-08db7c75de49 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:03:09.2764 (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: gW9iw5nwwDJ6mKbZphSPWqt8hEyx/iBJg71w6DokUB0X72eGDLWL+XwLul12YYoMDcDGLWJe5QL96t2rfBbmJQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB5767 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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?1770484863210796807?= X-GMAIL-MSGID: =?utf-8?q?1770484863210796807?= 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 Reviewed-by: Andrew Lunn --- drivers/irqchip/irq-mvebu-sei.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-mvebu-sei.c b/drivers/irqchip/irq-mvebu-sei.c index 4ecef6d83777..a48dbe91b036 100644 --- a/drivers/irqchip/irq-mvebu-sei.c +++ b/drivers/irqchip/irq-mvebu-sei.c @@ -377,8 +377,7 @@ static int mvebu_sei_probe(struct platform_device *pdev) mutex_init(&sei->cp_msi_lock); raw_spin_lock_init(&sei->mask_lock); - sei->res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - sei->base = devm_ioremap_resource(sei->dev, sei->res); + sei->base = devm_platform_get_and_ioremap_resource(pdev, 0, &sei->res); if (IS_ERR(sei->base)) return PTR_ERR(sei->base);