From patchwork Wed Jul 12 06:28:39 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: 118860 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp949074vqm; Tue, 11 Jul 2023 23:42:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlETDegqVnL/EUnnbSjorAb4wPL0UZjPZGuS6LXl/sjN5DXdkzwYTzK1s64Z4hruqmfE7Vth X-Received: by 2002:a9d:6c17:0:b0:6b9:696d:716a with SMTP id f23-20020a9d6c17000000b006b9696d716amr7283246otq.18.1689144175419; Tue, 11 Jul 2023 23:42:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689144175; cv=pass; d=google.com; s=arc-20160816; b=E3vMu9rX6ihCi6vypO7+4Ku1dB65IzpXoz7BDCgFyM0CLtNmG0Z9hF6kfHiPHSl32y FPyK7RTuunF13DBezlrlGU2buoSvfI0CqeLZC/BKARiUGVOfw6WU/we3p+/q9pZUQmmk gLyhe1QDCRMDueHoW0Y3h6uctWSSp3WvMFpFIfnVTBYtXjmLeHzoHCT7dy4IVr4uP/t4 dhLrZ9PXj/biGrizj+9IPFTw1gQBuQr578A5Xtx+PiTyC20w6GWkrP//UwWYoWBca9Xd QLGGAR3S6CKJU4agyDSK0TWr55zqRPQUDtDt+bQhJ2N8/wdJZ1GLe3WNe0l0kjToa/W2 3yXg== 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=k83S4Y3tdLmTiBXpT60jdbLyZrj6PLFn6F1UPSbBCPY=; fh=3q3PdFZ4xZD+NRM1r67J8VrVY0AyTe+ioGbzqg79a6w=; b=FK0Cc9y6bXmNtbxmLVRtszCPj76y+FKCJDydAcbQF+KWAxiX6Z5dk8GYyRBYYTseIM QdnIihPX+a9sw4l+5xDdPMPcNKNaiYgiIfPPGrqxeqWaurr1VXCItudZ1q1th7Saw5Ba twUi/4A0hkMO0VAJfwmZAWbxf3Uq+sIyNMS43Q8rE9K6J1EX0DVRTPVsRWEy3bcxfTFD 0qynOG1UwIBcKY0qfGBo1xX4w409/+DjOCTBx2EaXXwzRa4XX3r0xFpl+wcFtqA9E1gh 2jXhVAaPfZj/FD9OiBXnbTfRoEpTHToY1XpttahSnP+XGnxtApbc3FlSmIL7AhLMzJUT jBCQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=EhRu69O4; 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 lk18-20020a17090b33d200b00265ca1c461asi2780301pjb.175.2023.07.11.23.42.41; Tue, 11 Jul 2023 23:42:55 -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=EhRu69O4; 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 S231853AbjGLG3O (ORCPT + 99 others); Wed, 12 Jul 2023 02:29:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229674AbjGLG3M (ORCPT ); Wed, 12 Jul 2023 02:29:12 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2128.outbound.protection.outlook.com [40.107.117.128]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E96D10D2; Tue, 11 Jul 2023 23:29:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ckafQSFARpsYTkfkiKBiXfaHZZHcmdZssLIXFxdOylN0JAeggNZdLlxJrPpIG3ye66Uy7BRRf9hhJXV+/5ImMvu/fcu1tEWW0/IDSknVAxxfd+BEORL2dvPJLtagNNL0iU2ZUtrSq38nUpMWudtAFV58/MK2JgcV/F85ETtTA5pagvKueXaaoJinr4e/Jml79vy304vp5kZMJChgnU6Js6Oe3lGHre8km8hfc/awNqz3913HTE2cd8oop/F5ATD4VMmQKZscn+LkM1VcST6yYFXGXx+55UjzBGx2heLaoueKhnvow14UkJTSMVhqDKzIfSG80p5fWUpjG7mBL77fPA== 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=k83S4Y3tdLmTiBXpT60jdbLyZrj6PLFn6F1UPSbBCPY=; b=cN6qADxEQpV10t8rzBaRUbwl/iWj8Jf8OMWJHaMkBS6k6FirrUGwEt3rU2BIVo03oWRGL8QoTNpAf3mA27oPuCPoBfylEgA1dzYMrJnODC3EI//gW3T6M3jJcWmmJHxZJl/CpBoD40S8eoBYaDYtVkgfJKMAEmpEab/DQ1ybuFNh40upboYnTFYYrkdXZjOKJQeOD81DlrgnmvyyTxRGKJ506hDcdX+SByxu+nqrCAqktvrbanMO+Es7MuIO7MyDXUTIUEnbq4GS+11RooVt7pnGL/sMqV1HgT08buw9j9FeDviwgTCLx17q4CiGXruf9+2MMBOKyVhY4GZP1LwTjA== 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=k83S4Y3tdLmTiBXpT60jdbLyZrj6PLFn6F1UPSbBCPY=; b=EhRu69O4AgoF6A7zTkWi2kaoCnr45dvn9zvFcacjmoi5jIAC6lM1wJypuJ5BO90yYJdxh49yny3uwOAYnam7sqQOlmSJas9xF+6rL0l49U5DGFgg5P+SWalBUPqu4SvoSVeZxjz2CcQ88EKfwRZ2GHiNRLTA6kkm0XpH8DpB7PH4IznxMfiqIzu+w/AO6M+IGR09okrc8R9nhWKDt5srvKAk1yJVaXUCzGqmLVHPvURLecaechwr6xIqUK0eyTNZr1Gwkj/yG/Wu9MgvkhBZAmpS2LqYitt3DGdLpC4Au85KLJ/3sq44wKb8o2DJ0PYqOCR5wm41m+7CaMZjVCgM/Q== 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 KL1PR06MB6687.apcprd06.prod.outlook.com (2603:1096:820:fd::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.20; Wed, 12 Jul 2023 06:29:07 +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.028; Wed, 12 Jul 2023 06:29:07 +0000 From: Yangtao Li To: Greg Kroah-Hartman , Jiri Slaby Cc: Yangtao Li , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/15] serial: ar933x: Use devm_platform_get_and_ioremap_resource() Date: Wed, 12 Jul 2023 14:28:39 +0800 Message-Id: <20230712062853.11007-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 X-ClientProxiedBy: SI2PR01CA0024.apcprd01.prod.exchangelabs.com (2603:1096:4:192::20) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|KL1PR06MB6687:EE_ X-MS-Office365-Filtering-Correlation-Id: 2a5d9851-df14-4777-5e7b-08db82a14b26 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /DTsC9DId+NtZseeR3+zk3ky5ptfduHj89/11luK/GG2fYG8vcACrmdj1B7YYVDC3HBENtrJeTJQVwIRQL6z19qcMakFor56KpG0X4tS+r3ffVsWPYmwV8gi9wDAt2kAs9IA6dEaQFN33/TjsbCxHJC3bJX+hmxJN7UqIvD4E96qJd79HOCcJ9uehmvst8Tefpj7uleZVAl4VccRg6SZspJFzNFIjguafu+Q2QVWcWLeJd5UGrE8KmsZ4oT3pYBMQq8qciw2j/91v+1pJRYTq25b431BMKMLIlh/IbcsbMDqX88UfKi6qy5Ffj7aVuRQpBEIs7k8Cbtto7uqNt96l2DPOBiQ5FJopghXtcek1DkZzb+DUWE4cM7pODRz6d2uDKkuaBfImEOJ0lEstI+sN4uNDbV9F/O/1TSIv1JHmYyg1A6Kwx3xhzsWUzkvR5kk06rqlGaCmB1JxzHuN5b32VNhr4jSfXP10lAYSw4jjTCdBTbXVOc/9tSn/kt24P46rLeGGWfnWUyJxhejobCjeGHEmhBOfzDVhxkd9v49AOadq0VbwYQf94MIWoDV/snlKICBlGIimUNwB44zvi+8GvvG31z8+wi1qORtOF3upgpP1fXjEIByL5vqhkvw3Wbi 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)(366004)(376002)(346002)(396003)(136003)(39860400002)(451199021)(83380400001)(2616005)(38100700002)(38350700002)(36756003)(86362001)(110136005)(478600001)(186003)(26005)(1076003)(6486002)(6512007)(6666004)(52116002)(5660300002)(8676002)(66946007)(8936002)(66476007)(66556008)(4744005)(2906002)(41300700001)(316002)(4326008)(6506007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Id13QsXE+YCpmDQiu9/1ILqFWPctDQPCALCuPbtGq4Z0Z2LXwev7rGYlcu2P3PqiqmDRXW5vcTB6tJfFtBqTpHsupT6N5UfhkvrS0x2EjHZkg02/ysQga0EcHNY2jMVDEZCXvE//tg+G8LP1dRWimQj4StCHdIwj/rKRK5rKyqPi9iFcLtkvuv6EW7v8Pukv9smeYaNWLvrkvTBwL+zo7hNVklwT0SdgPIjORGh1+0udgT0fHkN+Svic3PPneXP9ps7sj/POwV8Jk09iUyYb4Hz08JgqEexpXG/utbJKpYjOHn2szPgK8fb4S2+nbg+rVVtJ8tRhPBWD00AdBA4s2LIRyt2Ghy693PCkd8CSYaBLkDnZLnpw7Ll6P0MXgpHk5d5EonBtURYCY3TZHRiPgP8oXgx5clj3L26z49B97WNWn/sX2FZosAVZWHURgVy80KfBF3wZ3HHIfmrH5wTWpkFI+nPIqcsfrJlJtxILGYW38Y4pQStXjIznpOiZ7JdKYod5BD35fixKA86kjUg6GWkJ9spUdHDlvFVECWzes70+zmNzF0U9laL7FntqYvRb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-4777-5e7b-08db82a14b26 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2023 06:29:06.9043 (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: SDhrTE4G7DEI+5g/4HBIgyiHZe3/rS+KWNPrskWX4/SxNY03czTtLULIrWqPPc3UaIJZ/yg3Mm9ZoVTOqzX2BQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR06MB6687 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_BLOCKED, 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: INBOX X-GMAIL-THRID: 1771196043000096199 X-GMAIL-MSGID: 1771196043000096199 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/tty/serial/ar933x_uart.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tty/serial/ar933x_uart.c b/drivers/tty/serial/ar933x_uart.c index 4c3d04c6826a..924c1a89347c 100644 --- a/drivers/tty/serial/ar933x_uart.c +++ b/drivers/tty/serial/ar933x_uart.c @@ -749,8 +749,7 @@ static int ar933x_uart_probe(struct platform_device *pdev) port = &up->port; - mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - port->membase = devm_ioremap_resource(&pdev->dev, mem_res); + port->membase = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res); if (IS_ERR(port->membase)) return PTR_ERR(port->membase);