From patchwork Tue Jul 4 10:02:52 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: 115684 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1109588vqx; Tue, 4 Jul 2023 03:19:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlGoE7Gy26nejSfefbcpSfTqfaZQrb72KRXVc+9n+oG63WKV3nGc7r/n491P/Q53PQKfd7ib X-Received: by 2002:a17:903:2446:b0:1b8:1c4f:4f72 with SMTP id l6-20020a170903244600b001b81c4f4f72mr11926120pls.61.1688465941984; 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=C37zWxxkwIEkz4ygiYQwXt6swJ3GJh7IfH83Xsn0VT4VzyrtPFG6fvzzKmB+ZBdrLc MrY8xLMRTYc9ze65mORouerys/h15Fbx4eLC1HlgMBPIxkVkfCpsq5l8wAQ9i2o2Zeun uCl3sy9z7NEaHZV7Nbb/cQlYa1qNsn4+9h5umWy+J0EicG3oxlVPwzS43YgzwdhHPz4z 7iJUsFy1tvk5WTp7ZfltJV5tcoUsQpXwONZ45QoJsTUI1h77iDwGzYaoKi7bRjhFk4uc Lei6HX9dWZS8kOWVgNsxrS9uwl3FZiJdhizMWtBmtBmJplIJN4YAcbIfrJTvli2kbizo //hA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=KXtAQz+B6MsnmWVkybG3g+z23inqX3Zoa4OcbdaukDU=; fh=4aDQHjvgprnMH+LWUpDXgFIhUYUpdfO7br7DP501Q00=; b=L5+mkUfspkdv0ymER66EEyikXmWRnlNJvvpZch6OoKZhKl/C9pr2wZt5H2Cpj1kqlL yO5xjm3/eWzjR55elVpTESZLNC0zwzXf4Dv/tqPOpTtoak2QdyXyGnUJDtkdsJiInQfv fr6DCX03yHTWIyWQEHIMTvBg5V0pIsRyl+T3WNnhlFUYlSox1f1iXCrY9Jw6aSXI50HK 7orBGoA1I6tozLfuSxe2z9oejGht5Q3zVVjNThHnBTtawxkbWxsB83HEV4x+zkOw4wqz Hny7VqAr9MZqhTmW0KiXrWjq52D8L+dOYPyFNOi6h0U8utNJnEyS8Urlrb7hoOMVPl6F OvmA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=HWXgGycp; 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 iz17-20020a170902ef9100b001b84ee60f4esi10727433plb.56.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=HWXgGycp; 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 S231502AbjGDKDc (ORCPT + 99 others); Tue, 4 Jul 2023 06:03:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231364AbjGDKDb (ORCPT ); Tue, 4 Jul 2023 06:03:31 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2118.outbound.protection.outlook.com [40.107.215.118]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2781B18D for ; Tue, 4 Jul 2023 03:03:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W/UMsBjlZCuprUmABniPq0OBDOGcX4oGAF2kVlpoVOY7PMnwm6HuLsXTmPxw3K0Wlc+Ui7BfdDLp7/al/Lx87tZ7I2s1B8ZdtfBMrpLjzY5izRSxLdZtlowrZgzjYzTqmAbHtZSstlXHd+Ru4pqCUtiXtZa0CtSnnL0j2Gp4Y8vOBua4GQKZZ4QcocaU2xgxEsRMYGXwANFf3No3P4HphEswnRad1994/IaFfpeRsvXqy5uzQzgSsa58tBpoyCs3sdjZU/DQfheW9FoAomuf2zAUtOCJ/+XhaDTQRX9Vmd5sNfT/bD5lsn3K9ET01ptrnPrexYr0O51IEAYm8hgC9Q== 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=KXtAQz+B6MsnmWVkybG3g+z23inqX3Zoa4OcbdaukDU=; b=g3Llo0OWSWkSmh1i0h+I9S4uE6Apv/VtiagwtY2+IWUKoQaKavice5CgEx7ja7wispR1ZmpKsHEvYRTDM82RBf/jRCh4hBbXA1I2Q9F2T4kFUTbZ6zJqGma5utQRcQ9Fydc3CGUemDLrJ3vO2wdny3FUnv0dbjIry2fii0ihVvm7sYkt4VZ8hCSrKHNWEVdC+yEh0ahjk/2f65QhHbz10M8dT8IWejEJclEHwYCJphI+fCb2v1eei/edr07ZCufRAFwa094f9AJAdFlltHjlUFfp4kUKvhzljYcrmDUmy8dcuUJps3bkXEUfBIxljBQP3WS0+PiPyCAJWke5SqV9Vg== 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=KXtAQz+B6MsnmWVkybG3g+z23inqX3Zoa4OcbdaukDU=; b=HWXgGycpCT4ZnR0EnOeGzvoAD8xUX2SlncX0+JM9FK7HTQNzLrweasViikr9XsavHc4F/lCqesBtjEwpbjLZQuZyBttQ74iTwqKtTjtJYWNNF9uXOylj6sHEU5VBQli/JBsMWGmTEk12qrqGGvoRmujrWT4rnAWqrSGkQ6xTqdcMzlAhGx6c3pQUJJCuY5NNShlUbNHu9r4mcbrqxLqQKKzMyxuk4wB1rj36BNwroXKdzwnznIFxHhXOVSuXeJhzuqHaYnA7L8VrPK+n63/YU036OTcL5AjpHrFl/tFmy2kFkq2rthPyEce4fYfbFA+3r+peuQ8JM4U4Mf8RBtaUSw== 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 PSAPR06MB4294.apcprd06.prod.outlook.com (2603:1096:301:86::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:03:06 +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:05 +0000 From: Yangtao Li To: Thomas Gleixner , Marc Zyngier Cc: Yangtao Li , linux-kernel@vger.kernel.org Subject: [PATCH 1/2] irqchip/ls-scfg-msi: Use devm_platform_get_and_ioremap_resource() Date: Tue, 4 Jul 2023 18:02:52 +0800 Message-Id: <20230704100253.36045-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 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_|PSAPR06MB4294:EE_ X-MS-Office365-Filtering-Correlation-Id: ea6ed7a5-7f10-439e-8004-08db7c75dc16 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yuIvGOS/Uo4IWvrXv98COfgG+W7zPj23EUGLCAo6+vspPrdgc05JvxFp/6D9HqV+JYYX7zAMIZznbilc/aZLsi+c8FMExo+/jIU4WjAOSBXeho7FuYhM+CZy2swL8SUDXuQaBvP3bEGKRIbsOY+8dNB0s6NwwWX/URolXAMFWHbdP0bhTMwgnTVwVhlW8svtLuv1D4VGhuAIYYu5oznOBLMK5n094WyLLrk5ywY4+G6m6qCoyM+WMiJo+bWJmbyopitvufWDdL6+P4UurnpTm/X0sh2Wm4OxOFjjh7j98etOikfUqXgmGNWLJkxUlUzjG7CWVW2eKdlgWnndJq7fA2MngPO8bJ6d/F0+m6YtoPLsC6ZY+WQgXKnANPhd355KySl1LRdTOwPruDooRJ0i1RGfXuM6edu/EIsOctLDpVb/iG+XW8PcA3wnQv1MS29UI/YFhPKOffNPgpBVAXYYV3cnPkQMMiOYDi78T23EoXfi/lhEsl/dwDHlYh7vpKl963BSuKqu3Tg77HdVQxftQFnH62VkXLUAU4LYaV+P9FBIrgvifx8Mj2EHXp3vf3Xnz+ywXGtyoTZlgjXOQk/Enea+e5iUOAaPcOcfB3odBsYOgZwi5GTgW3ET4wOUDKfc 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)(39850400004)(346002)(136003)(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: A1XO2+b2+6KRJpILA9hsqPlt06ZMZoVR3IWpv4qiXS8laumBzJoHY89WMGVXxNbgzzFgYTUgBXNgZTqjJodeNpkH688xcWZGjKSmIjTah5kjjIEs/lojnXPLFjxenP63uBXyRyHjb0XLlbWPMBl52y80UPsNQ9bzZ3xWZnGXRwpf2TCFDUJ3igPOBEDKEERLO9LfUwZA5oucVJcv2eDnsToRwZYkYhD5eABk0La+My/x7umCRy4G+Lcm7gMu5kIwcQBfeaWaIxP61vgcSpWiwj+YhxNwGeESCgXF5VKaZWKPPV16wSQcWXJ0EM9RW6n4VIFY3ZO1RYvMiBAEqEIv9NEViUJS97QECSjMWy4zai4Uqhdkva6BvFcCcIaBkUewZn655hIgmnl293whNS+/wI0YXetuWtClqR1APaDiICbXSSj5+j7VFjE+a36uA8V5+25CBt01sJqHOuXsl44kttoZxe9wnGb5hrdM65fQk77QsiqWd3YxLt+T8bUY812O9tl8DqI5nbjL7Bi/wUJursjq95xKHaxLpwUHSq9bAUUwb8LIBOggLIvQ8O0CJzdAY7EPTNIoiPQg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004-08db7c75dc16 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:05.5889 (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: PSFo8A1PjvRZnlMk83MfHGRFmb8gCNLsSBsdC+jPuvU/gHKlD2dB1cQMHZl2bfSCf+I/JxhNZ6iT3LaW64ihwg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PSAPR06MB4294 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?1770484863104855411?= X-GMAIL-MSGID: =?utf-8?q?1770484863104855411?= 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/irqchip/irq-ls-scfg-msi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-ls-scfg-msi.c b/drivers/irqchip/irq-ls-scfg-msi.c index f5ba3f9f8415..f31a262fe438 100644 --- a/drivers/irqchip/irq-ls-scfg-msi.c +++ b/drivers/irqchip/irq-ls-scfg-msi.c @@ -349,8 +349,7 @@ static int ls_scfg_msi_probe(struct platform_device *pdev) msi_data->cfg = (struct ls_scfg_msi_cfg *) match->data; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - msi_data->regs = devm_ioremap_resource(&pdev->dev, res); + msi_data->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(msi_data->regs)) { dev_err(&pdev->dev, "failed to initialize 'regs'\n"); return PTR_ERR(msi_data->regs); 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/e1PzOBDd9TmCyoxxV4PcbMKCuMmgyr8Kx5Sq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czAsPHRpd/85PJuYkBEu/rJ7H1UtFhsJfRo4pHQJLVHVU9jmvh98iH47xrPZqxGGT8zs+ZuJdnb1KefJD5XqpfNsmZbHJlTIPzRy3mnwIqZPu2XVDD2i5LszenlixRne+vfNYUUXqhr40HH2Rntyal6k8kpkriugBr84MUVHEP4AU5l+paUeKMRa4BSdfBycal5UoH9AGw14Bbt6H8mnCn3UOlOEa1Zewabzs0bj292UCmQQihiYzEXG3yyuvRVpLEFcqUlA443Cf/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);