Message ID | 20230712062853.11007-15-frank.li@vivo.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp948147vqm; Tue, 11 Jul 2023 23:40:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlH9ZKNd9ftiywJ1nmxD+3nL2hTgmr48Jw6dX830xVTzA2MOddnBc0mI3xWhL3wMRQoxzng1 X-Received: by 2002:a17:907:8d11:b0:96f:8439:6143 with SMTP id tc17-20020a1709078d1100b0096f84396143mr18754775ejc.40.1689144010839; Tue, 11 Jul 2023 23:40:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689144010; cv=pass; d=google.com; s=arc-20160816; b=hiBEinUjqrA3LSFyH0cHAMKzhh1W1IdTMLM0LWCjU9PPzNAS2cuevZN58bH0ZiTxyf Q1WBL5J1266aaj0aF6qY7OX+Zuw7iLwZV8DHZQE7La9Fes9485ygjlTVrnm9U6F+IrXO TtQLUxPepOEVMedm2mdMi03AOAMeaI3fx6o0CHUqQ4QV3SnERiIPBhxpGttZi8DSggyZ W7bEZEYyHtw+nPsBZBeWsZ3jxko7m3mQ09lvjP/Nh1Evnn3gI+5zjGuIMjBGibiy3g/N wV1wjdbqikCobRExJ6GOX+KT39O/SqhtwqbhTMoE0g2X77bhO3NBji38myrW5kPXDz60 xy3A== 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=QKZcowGWkU6nw18hO0sNW75IfqhjK1fOjaTByF99/uo=; fh=orAnxuKrfxqktGSG6elEHLBPGv5VHIzvwjhO8FVIWgI=; b=ld1CVIro34YEcG2J32ChQDm0iz2AFpxsHk/Mon0R4WXTEc0ikudQVfMO2oCyZUZ3ke oxyRMjkvMzJ2RacG2r89TH/W1Z9um7a5ygourjpt2L6rpgN5FIhbp9mkcewVuvS+hQqW a6+z8ZX93p9N+g1z0IWGkBJlyeXDfZdvT7OQRZ/LTPSAjelB2NuFQQz7UqAz3eiS3w4w uzXCLvOSihj5cUiWKLgmG0kvBaSGyIaxzUQHvOFo68cNosNh/Rd2c7u7a2tpmMAGO+Mm aLOz4ZEqEhHJjh6WI2QavWjv2uk9EYa2O71582dOMq/SxTnf1l903E4I3+TmOJW6SAXr jANQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=UUtUHNbR; 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 i2-20020a170906850200b00992f45c9348si3799018ejx.1010.2023.07.11.23.39.46; Tue, 11 Jul 2023 23:40:10 -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=UUtUHNbR; 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 S232014AbjGLGc7 (ORCPT <rfc822;gnulinuxfreebsd@gmail.com> + 99 others); Wed, 12 Jul 2023 02:32:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232127AbjGLGcM (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 12 Jul 2023 02:32:12 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2106.outbound.protection.outlook.com [40.107.117.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0507C268C; Tue, 11 Jul 2023 23:31:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dtoX9bL3grk4AUnz/dMNRXAkQihxOLK6ktHamwhj5Q/pxbP6ITdxWpVAqXzJEwndUruyyMHM2FZyAh8f2D0a3T5y/NwQD24vmLxPj/iYE+YH7gc+sg1CMHWIRypZxoRUt8C6voHeFzozgpUoz9MMxehJ4HgLoE81+icoa3MhD4iYPqIbKtRafwnocz/auWCUNX+FCINxF9N2+BWlTtD8/gLHKqhnzC6HLfCHF+x1epfheMlwkwQ/T3DDcROsf9i9quCmHN/awhd7PHGMi+TPZn1Pvw9gPKxKDzKY5Ag8SOEtq9AF7+b1cqSjIu0PeQceTkJDoOj0spgARn2IWMMmlw== 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=QKZcowGWkU6nw18hO0sNW75IfqhjK1fOjaTByF99/uo=; b=l8onTcwQ8K80bzPAWbWFE4dMnSGA39LCG0NSkwtqcE7gAeBng5boRz9X8aWHSQLK+JvcKf4LQBxW/ypbW4NehahjXTZTG87GI9+lULkCC+kfzZEICMgsJ0+bUbFYxXAbQgiujr1fJAqFmPhL1ZKL/70tHSCBGzXHLO45MNpKmghLZLQ4OXR6vKcDaGqOftBLcFhyEhKje1U6X8P1+i/yhOvUwsJFLq4Meev28fT++7kVqeaj1WzpsNTQxuBHLpKiKQwWXrXN9QVDtwd3VyCaCTTx3UQ+acX7v/ox9FzGZc/30TpktBPY8wX2xh0e5LnxAYA9ok1yBGo5CIZCp9N2DA== 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=QKZcowGWkU6nw18hO0sNW75IfqhjK1fOjaTByF99/uo=; b=UUtUHNbRfwlyQVSiOUGN2SCexqv3UczIT5bvmThObFmzjLBB/aENZnKgHtTN+dPOVfcLUVwML8YVO7RkWs9eFkChoiMwxhMvwZ8V3c+QmqW/6JiIU1iUBwBjv7vr2v2A06r1mwCmZNLpcchy49DCtcbeph1H7PAl/B5JsDMl1LDWFvrbR4/RVH6wlJ9PPWv2QHbHtVeNl+9f6rbBwsE9b9ceW+4vBawutvwjWZ8eVCTAQLLoQLvPnxtKdq1c27F7KmfCB9Zhp6WO7E2u5Z9HbjLbO9czeZrMFAwEs1awsmRKBQBDKMeuRqj21v9iqzrkJ9IwExWMYJgz5gkeNIxk2g== 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 SI2PR06MB3963.apcprd06.prod.outlook.com (2603:1096:4:f2::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.32; Wed, 12 Jul 2023 06:29:38 +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:38 +0000 From: Yangtao Li <frank.li@vivo.com> To: Patrice Chotard <patrice.chotard@foss.st.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Jiri Slaby <jirislaby@kernel.org> Cc: Yangtao Li <frank.li@vivo.com>, linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 15/15] serial: st-asc: Use devm_platform_get_and_ioremap_resource() Date: Wed, 12 Jul 2023 14:28:53 +0800 Message-Id: <20230712062853.11007-15-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230712062853.11007-1-frank.li@vivo.com> References: <20230712062853.11007-1-frank.li@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain 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_|SI2PR06MB3963:EE_ X-MS-Office365-Filtering-Correlation-Id: 9f3b8244-ed3b-4495-8186-08db82a15df5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yxGNQcfkzdzh5/RqTOXdkNvSrSDNbxJ6ML3+aJk1CSq8sexB9i3RHQ29iP58vvHRHjFPnf/fxnsyFOOo8qD25vzg2+HS2OjwWOO8vAbWS/LfG+H6x7vvzrNG58zxLBJR7UmVaysJQWqcMAWWtjfE62ch3lw9GLD3UoF+2AXSzt38ekl6Em234ByYLRfbvs3apc7hTn8uV2HL7vbGPLBrfiRNBOCDQ2pzb+H+/45vIQwI40da2IzSkdUOhJDAsZRKGdOMFfH5MY6a9Col6t5WUqa8FmhgA6cGXyYoLmG/ySATIwlsOVkmhtPQTdcoZBOLDkrg0tqV9YPcO0PMwdYKhtW4ck/18VQGYyINfmXK5GMZrK9CyZtJlHcmwRzsiyVRxqtmppoSLaEiryX0BLXTl79nL4SZSvuXrpoqrurGQohu7ehE8MwIMjgP0g35vnIyydktuo7ePuyysqo1NdllOSxCReKPsrnhVHZFCv7GkZw1SxQPSvjHZD6wvzodsqBh0nAaCgB8Hee74Sd9rUy4b3HsU66ybFrUiOgXzdRhsHt/pqOWCQwqFYc1Ct/mWsTP+Ncz8wXPw8ilEQzUAzT/kq2tcd4GgZaYJ70LZKdqUrDvayxWCjD+8nFM0YrCXtYT 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)(39860400002)(346002)(376002)(136003)(366004)(396003)(451199021)(41300700001)(316002)(8676002)(8936002)(6512007)(478600001)(110136005)(52116002)(66476007)(66556008)(6486002)(4326008)(66946007)(83380400001)(1076003)(6506007)(6666004)(38100700002)(38350700002)(86362001)(36756003)(2906002)(26005)(5660300002)(2616005)(186003)(4744005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: q5WHCByYiaD0HH/Rmzc631joEWzVtmwuQBFC4Mduz6tFxt6o1a8Kv1aJVZY+5Y5GUDtuT3zw50108pK3JshIvhcNujDbTr1sit0VqYcRBiHr4bMdlbraBKsV+TiAn5dMcPXXCNu+m/tAaGPLgE/wLXqfyfzLwwQm//C7b0bTEo0EJFdHRV6f6O9f2coNG2ZTDPFcqY7LUMEMEn4JC/K7uRvZr5ifJZmR00NBT4+igUatl/JYCf3KQzhKYrYuXgGyvNVZOBEo1xyMB+RjQfFndU2p4vdxytMFSzwMAMzuHb0gYTn9rC24+cnKLsLwIaPFAszyI7q5ukFOXKQ78+bGMKW7r6IQ58nlGmeHdrSzW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JmLJE+c7uKQl9XutIq77etv2tC2vB0gmVqGYFVtA6ZbmSq/Pz4RU1gFmyRU2kf5xeyGFmZBRWIwNJsC4vFNxvJsH2RzU3ETGYlOBN5c+SDFiNiIrZotl8ivp9q3QOUcarUo7OFldjgmdRlLdYnaYpZ7YUP0VZ7l X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9f3b8244-ed3b-4495-8186-08db82a15df5 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:38.3096 (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: MVOvTlKsY532beJT3bhfMXZBIYqA2jWcIdgmYXWGZbH0zMb6FnBZG/7T9xjZQx00lwNCLgeLEQJihDte1QW7YA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB3963 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771195870640306125 X-GMAIL-MSGID: 1771195870640306125 |
Series |
[01/15] serial: ar933x: Use devm_platform_get_and_ioremap_resource()
|
|
Commit Message
李扬韬
July 12, 2023, 6:28 a.m. UTC
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 <frank.li@vivo.com>
---
drivers/tty/serial/st-asc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/tty/serial/st-asc.c b/drivers/tty/serial/st-asc.c index aa471c9c24d9..4d3b74e48546 100644 --- a/drivers/tty/serial/st-asc.c +++ b/drivers/tty/serial/st-asc.c @@ -691,8 +691,7 @@ static int asc_init_port(struct asc_port *ascport, port->irq = platform_get_irq(pdev, 0); port->has_sysrq = IS_ENABLED(CONFIG_SERIAL_ST_ASC_CONSOLE); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - port->membase = devm_ioremap_resource(&pdev->dev, res); + port->membase = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(port->membase)) return PTR_ERR(port->membase); port->mapbase = res->start;