From patchwork Fri Jul 7 02:42:23 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: 116910 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2982892vqx; Thu, 6 Jul 2023 20:03:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlGVbxQkqy9mV1ITTUKkUFOeFpFgCA3CofJHQwAsH8HFmoggJ52GIydFy+xUDizD5vlSCtzn X-Received: by 2002:a17:903:228a:b0:1b6:6b90:7c2f with SMTP id b10-20020a170903228a00b001b66b907c2fmr3379506plh.55.1688699008280; Thu, 06 Jul 2023 20:03:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688699008; cv=pass; d=google.com; s=arc-20160816; b=snGE863ptp3N7dzIf4OFU3KCtTOSiQ3AFZTzRy5CuoRhtO6zkKg6TKPwf/qrpnvMcx 1PUKUhBUaz2ZtaF5zkh9cxh4WM/jyuab0X6hOMERWaJCXbBJ625wi2rrYnPjxSPvqrih c0AdeC/Tn8spi9MPn+Q8gbgTPeCDeMTmAqbrPK6TfSDIY/iI66jLCX9mw8XBv294Ju39 6xZZILuYm7p2kcPw5lbqkSngcpg0K1UY5OMm+52E0xLdt25mB6XV5H2YiZpZ7jlt7Qp9 behTC8jxNJgIALTOPBoBOuHgM42hpPO/1pgFnVYR8zIEaiy1YDqXV+/QfocSN/Z734yA N5uQ== 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=VGGHqFDuoboytLMRjkf5bxlXtznNaniCA29z+3D4DpE=; fh=9QD2t66C3DKOjdtfXMCqi90x4Zxf0ofvIJ2HpZP88QM=; b=DvGveh5k+5M8dzzDWjf/T+NTT4ozgc/rwPJQs2WZ6jGPNqBOpDgj3uMGkVyZWwqYUo +tOmhj+cjczaP4q3GikqgvRwCwY3R/FblyiEU02SyLqSI5uRQ11YxJetVvijWn6n9Dyg RdAMqdg4ON3ubovs/KSIzvZdnCg4w6cuSjqHmkk1vjyoJNkbH1TXvZSzwdMVzlgZcfZc se6EggDsIUgGB7Kki8dsEFcK8HG2qrs2xPoxRDldt0n47SNS6hMFuLtyUA5nWehQCjHX IqhOeGewHRQs0VBIbcZ0aChag4r/k3JgDF/aHjJYAeCRCKvWnZN+K3M7cg7drHzt0XCP 3RSQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=RlzwXwBX; 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 f8-20020a170902ce8800b001b8a8154f4csi2810586plg.544.2023.07.06.20.03.06; Thu, 06 Jul 2023 20:03:28 -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=RlzwXwBX; 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 S231652AbjGGCmv (ORCPT + 99 others); Thu, 6 Jul 2023 22:42:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232428AbjGGCmq (ORCPT ); Thu, 6 Jul 2023 22:42:46 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2130.outbound.protection.outlook.com [40.107.255.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 770D319A0 for ; Thu, 6 Jul 2023 19:42:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EXjDtNJ2mmaPFa5caZlZ39kpF8IpLjcBjZghh2rhvkuMouW9Mqg3yTfwFeJJ6O7agifWKApHTd7DW+A65v6aWd7Ru6mt4W9E89M6eygzmzqF5dHITbdwVMtMdmL+SR6B1L/qnfwoEKbx62ruExxZpzy8z37QFr6gy375YI2h9cRX6sEoOMlCrIOcFbTdTMt+8XHoy3BcRJVXGe5LuM4ilYhs21oGLh0ETAbYpSMe+SX/cJXsrhnF/qKMVZlw8cZHvdDcC1WcuL9ndvHjbpSHgLkwcEs9rA22XihKqJshbW8km3uzGqxhE16jUxkK4z2rpXAn+csoby7w8g+nER64kQ== 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=VGGHqFDuoboytLMRjkf5bxlXtznNaniCA29z+3D4DpE=; b=O6Ljgh1yqv31OMbG13crJOqWxGTVZG+Qe+/dPS5U2Fa2DuUQiHbHFfD3j0S3ANtW3euin8Y5pLJ8zLpGApiz/H+kjZeZSNo21kgJ1wYDazQCiCI/iguEjVQBNf1TYGOkpW+RKYAYv75ohmHC2HxMMvgvvORDt+fbZYlhYuTDG3BtZ35xnqfFt3uTSoPy7qgjGcQ/NRHqTpVk7kEBWScKXSZ0cJ0+zBrvthcjxvYvuJnjiEo7v7qppI6WCEntrRmG2BhYHkzNp5PLYpwgZGMNA801L7ly1Pg+gwc7odQTxPI/c+EhXaHPjpTgIInu8xhC2QIesOKH5Q7f+/kqelZ1QA== 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=VGGHqFDuoboytLMRjkf5bxlXtznNaniCA29z+3D4DpE=; b=RlzwXwBXu+JKs2+i37SQZ+P2CZrMmDm21gS7jnV77BJSzDswrHxVy0vb6H67InO1ZdO9oGY9xcZQXwsANtBI2ZWhtS2rWMmbBoWpNHNif4Zvo1z0ZnGa3qVpdivLATEo+0vNUeEJzCuAFv3IQ+Iy04XoH/BN7KvvGB1mqdMBuZddrE9XmR957M0Lm+HpVM3wflp9OjXCw/ZcVKneZcp+aeW1fNMw1M4BxjEOuAV4vZ1wGYk+vWtPXZUhR04FCwtQvbluxUYbHGfDH5oFu6iiAJaezZO/x2Ojwk4OHu0pemshhvodVjlUaJzdTdO/e6dIcUsSQbKJdbWKce+YE0AdOw== 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 KL1PR0601MB4482.apcprd06.prod.outlook.com (2603:1096:820:77::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.24; Fri, 7 Jul 2023 02:42:39 +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.025; Fri, 7 Jul 2023 02:42:39 +0000 From: Yangtao Li To: Appana Durga Kedareswara rao , Arnd Bergmann , Greg Kroah-Hartman , Michal Simek Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] misc: xilinx_tmr_manager: Use devm_platform_get_and_ioremap_resource() Date: Fri, 7 Jul 2023 10:42:23 +0800 Message-Id: <20230707024224.78907-3-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230707024224.78907-1-frank.li@vivo.com> References: <20230707024224.78907-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR02CA0024.apcprd02.prod.outlook.com (2603:1096:3:17::36) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|KL1PR0601MB4482:EE_ X-MS-Office365-Filtering-Correlation-Id: 68a2b1c6-7bf1-4098-3675-08db7e93d435 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1uALAY23RggdRKGRvH/uG3+8sCNeLz+IARdtMnWTze8JTfzzCZJZbgtyWBCh/b4d46v35U+tXFzaGQmQTlskl7Pi6kA2PEUljJNZ3N+aIENg2G55Awf6KUgHeU1mi5ksovqTBScJW2tPlb5XRsqqHvyOz6+P56+oDjovbr3Zn4Dj4uZvr40qW9rFNLq6O+NQY1GcRKbuqfW6qmegcU2ymu986yKFRRojujncSHnqGAZEaKwrEchSWrVoNEPKTxzjx9jI8ghARo8OaueSpKxwuMiWKFMaPa0ivFR4XA9Udyxw9mWrdjRXdu2tr5dWYKF2qejaIMafQykw9+sK6CAak/yvhcQVEu0Vf80rbiuTxHUPrWrW9UnIFGJ5lR54LyWkdKS3lLN1coyNAEep4V6x3+WxawUKZNoB3iVox6si/o3zcBkvDO5IPTJ1ASh874DeZR+1SURP91KdG6SbQoYtvqGs2wCbBBTl/MNP/i1r1/c7Su9jD7IYPbif/nrtXgv0fkejY1b7pca0XWppiZRj0iZtkAOC/FWJunU24id+jE1L4RjY65D0LZn8B+iL2inRkwypIQNy2F3/ZdU41tdQ6sKiYDIjz34gVOxSbiU4Q7hDhh+JcgBt003KSwHXIohz 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)(396003)(366004)(136003)(39860400002)(346002)(376002)(451199021)(6506007)(83380400001)(38100700002)(86362001)(36756003)(38350700002)(110136005)(6512007)(6486002)(6666004)(52116002)(8676002)(8936002)(5660300002)(478600001)(316002)(4326008)(2906002)(41300700001)(66476007)(66946007)(66556008)(4744005)(186003)(2616005)(1076003)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1ngj//CwXPmYE8tyUWyGOZLu1byxHhf9QwcONjoaUff99akz83kBlb92b6ZbJfNYUYjVgov2n4QjWPc43jtAOJQlpE5MjxISNuMTaS9kMQa0KVhfpJuPnCR1gSCal7DLKwY1pi80Qo6NJE60OnQv2qtWS3fCOGjhVXm9Jr6O99B1VeJT43APShB3UWLCydeJIZh3h/6EP8jtI1fNT1RwK/ua3NNYYf+UgRTAIku/gkQCT8iSaBwjm+C8JRpz2zIdSGjFR28gzM925lK7Rt/WQnd7xiJ6iudun97sDki/ZH8GjQsote3D9ASdFIenx4f8jIxSuVosgfKxtB5tP+V/+pASMzFpCVCftozxGVp0CwgZ3Vz8WVk5W6LfkhYHlZYKkYK6T0aia9tPALbJc9DEQubAQFLWlvsk46KoZ2dVjJsJKcjRKWHJUwB8sUXWdhdZTjQJi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9mgnt6s4l71HRxsuptmwH+ag9+WSyiNLy9YqB+v9Vzw057I1A8HpDU2tnLmzEbTGue3bN X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 68a2b1c6-7bf1-4098-3675-08db7e93d435 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2023 02:42:39.0923 (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: IGPCkytHgj6+iiXa6K1p4pCBucqLlvJcv9CW8JN6zoqiO0Rh0mGKqEqXfv8Vjr77C9g54+WYL8UjLg/OreRERQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB4482 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?1770729251471781116?= X-GMAIL-MSGID: =?utf-8?q?1770729251471781116?= 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: Michal Simek --- drivers/misc/xilinx_tmr_manager.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/misc/xilinx_tmr_manager.c b/drivers/misc/xilinx_tmr_manager.c index 0ef55e06d3a0..2e7a5f37a01f 100644 --- a/drivers/misc/xilinx_tmr_manager.c +++ b/drivers/misc/xilinx_tmr_manager.c @@ -170,8 +170,7 @@ static int xtmr_manager_probe(struct platform_device *pdev) if (!xtmr_manager) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - xtmr_manager->regs = devm_ioremap_resource(&pdev->dev, res); + xtmr_manager->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(xtmr_manager->regs)) return PTR_ERR(xtmr_manager->regs);