From patchwork Wed Jul 12 06:28:41 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: 118865 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp949573vqm; Tue, 11 Jul 2023 23:44:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlEigdoVtkiZwG7oGx2YiNtxpifvutaHXgJEBB/cPmeVbK9l2dVtbj1QW+L8ylKWcOM2dn7C X-Received: by 2002:a05:6e02:14c5:b0:346:5895:f9c8 with SMTP id o5-20020a056e0214c500b003465895f9c8mr9272143ilk.10.1689144269217; Tue, 11 Jul 2023 23:44:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689144269; cv=pass; d=google.com; s=arc-20160816; b=jt6BOZaQE/JQFm8fIJlf7AeqD7EoF0ClY8T4GgyRtjDDSRt2+sHQ907jZ+HxAADlq+ 2CWK9v97+d8ivM31eFiMeMqK4tvlRfTxcRsD9YWEa4fRtDDMlkgSMNcvAth+sQd0pVzG RZE6FR7COkMh/25MLWl0Nx2/X1z2pcMcS9BqStYEITM61ic7M57Tf7YIvxGKi2ryyAPQ nBHjpyYsun4YuA/SEi1tWYiGqONpb7iE3MQmpQakBtjx2BpLOW+JexntML3hX3fNOcxB yopHaXoqYgXUhVrcIYRNB6pfv9jVmI+27aVMK3FUKUIiDxeOJ2v4AmXD6IsmLbFkYBhA eG0w== 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=ZozWrzBbgRSJsVIQmRLHJ99OtcdKbjF1rw6LaMWhE1g=; fh=hM+Cpu4leDyPEDEgNowkQuwzMwf252pYYm42XMSmjlk=; b=AAdiHWXIYMZ7YM3AXVpM1BX3HzvHFi7fwQUti5IZ2cVTFZQAyIw6U7wr0Wm2c1ebdW SckqV/A9MCFKicbW6p18cC3p7lyopb8bXFIKnB75c5F4MN3m3zyYFo5DgCJvuWeqVeuM AMElUiZDu/gag1V0ZbV2EoM/eeNidmz4hcmW/S2qr1b7H0TFdU11L96/bt8gNIlQwkbo KBi/iN2Pofxo2zaZJ7gUJu1OWpbZPLA/kxcof4xO0OLKlhXbPzsHPaFfk2FBM7WUIezk JFkcXuST0nKlDzmtvembHAGrtsPFWIJmhqa/adRlpUdI234xar5V+jYBJFM9kQWC/uv6 P1ZA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=aASmB2gu; 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 y13-20020a655a0d000000b0050fa9bc63cbsi2514885pgs.432.2023.07.11.23.44.15; Tue, 11 Jul 2023 23:44:29 -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=aASmB2gu; 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 S232077AbjGLG3Z (ORCPT + 99 others); Wed, 12 Jul 2023 02:29:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229674AbjGLG3U (ORCPT ); Wed, 12 Jul 2023 02:29:20 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2092.outbound.protection.outlook.com [40.107.255.92]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7720010E3; Tue, 11 Jul 2023 23:29:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Dn0qNUfXE/SYITNq2utKB7eqGpNpnXwjprNPHX0m9r1814EbCSMuzi4XdSbZqtUfqU5mU6GdghOrBf/FNbjxVLX7/czkVX5SzbAHuCeaw4ACXFufRGBVAa1s7Zg3oaUmSWTXXHgJvyhQrJJRK/VByH4HX99Vw5CuZlZEBbHlHJNHSZTVmkbHr44Fmxe/8P+Qm32YaFPlP3OqY6lFRyibT6FTNtguFklHvyG75qaHISQDuS1+QzrQaSCZq949NW+Jglhns5FWIVgNr5uVTEubf3psAHTcB/GCQkowkKSOHTj2TlMjoajllmVWOmCAW6CBdBOgd2btdctw6SXEgU4+Cw== 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=ZozWrzBbgRSJsVIQmRLHJ99OtcdKbjF1rw6LaMWhE1g=; b=P7tl1m1j1cZkRbYRYJpKB1udMx5TPbHDat78Dn8yasQD1RVr2b6Ap9qx3xfYv7QtYqH6L3G60xWEIl0x22YBa5Ivcq1BfulZJnQws0SZyOPKehD2Mn4IQt9Zxbo4AlISK+9cq6Awhp814YPB7EUKmT3keTERvo7v0zj2Q0xR+zv01ZOhYXN0FTO+c1qYeBIwmGLmzSwVbN6X3ixBrH6LIMXoP/9TqDcMEVv07To+sLWq7Yzo+LLnDJzHVP8FVQjg9n5ZcuYFw4v0nhcDvIqPKEiIxjMM/3jozQ9bzNhu8mMK8lcl62V7UN4paxxQqNMktBd5H8+P47lMLvark5mSdg== 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=ZozWrzBbgRSJsVIQmRLHJ99OtcdKbjF1rw6LaMWhE1g=; b=aASmB2guNguYzAr1G25S6KMvJ0R4LWqHOSaNDppTweUInP+9Qvb9ThkGww2UE/bkosLWE6cHRL+hm2WDBBuesVxIjjoxl8q0fuphgNERf5M1Eedh73GX5JZ0i9a+gkcHxCrlg0Lwmb7gB6F9p1KzOBn9VTzRMQ9ObXgT5Z3YSz3UIs91fLckzVXOkzYY6bYx1EWI4Pe19CPuKDBzwEjJVfjRfHOefDf5pvOqo4xj3wfjlyNqLNzD0C6MxgFvmkOJLZK6eDU8D4PlQEUcXDDlqtMedn/yazuakgpDi0nYMPiqPUFF44oRSD53c5pv7N/WbabIKhbIgeLkDmsEgXHMMw== 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 KL1PR06MB6672.apcprd06.prod.outlook.com (2603:1096:820:101::6) 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:12 +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:12 +0000 From: Yangtao Li To: Greg Kroah-Hartman , Jiri Slaby , Alexander Shiyan Cc: Yangtao Li , linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 03/15] serial: clps711x: Use devm_platform_get_and_ioremap_resource() Date: Wed, 12 Jul 2023 14:28:41 +0800 Message-Id: <20230712062853.11007-3-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> 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_|KL1PR06MB6672:EE_ X-MS-Office365-Filtering-Correlation-Id: a6f9464e-ce2a-4912-5c69-08db82a14e79 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PvyPcWboGi2OO+L0yiSN69RK41BWbey+Z5wYrviL5d88QCvMSeqvBf0Q06aZ5vIHScdDLrp/nzZl5hpXYh5cGwRJXLp8TQZ/U2u2/GTCslvMQPe943A8FSyT1FrGaxXSc5jzEuBdfTCH03ES5Du3cWH87aNNXSKs99sSg/YDme7f0PyZhA/+SHLe8mUQvTHAog4Alqh/unR2f4jti0IQ9oaTXKTl94dfTAcYB00u9Nr9Rtxx3AmHhc1TBZ4PU88tLGPgvgqZZS/HmCtOh4yP7nZHo8Yyli0tvPG+SiB06f7lVNAKnpEZB3+pj5mmJH+UAW6D1hZU3LCRJyz0buILDJYJ4v69QQXLycQ+EIsItdn2JkoBQdh9VSMizGX+8sxfLA3Lvb+g/9y64XSCeVW8TA1uCj9nji/3BlocqQx6+To+21qAIfRku1loZjovwzw0sHkrmdjRCcPzKU9ppu73jzw0tqEq9Le9NfITx0WUGSYDE01Op3bJccVcwHxkzNPWpDO69+iAPZViItfqMA4wpEwgIJTCqKtF7Pn27AVRswI0vMBwN8VAELGHkxD5AIPm0WImGwzPv9LcAP1+NXDJcXHgkCflh15U29YHdHvrZ0h1M53LI1hCMlIqR1pIkmDW 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)(136003)(39860400002)(346002)(376002)(396003)(366004)(451199021)(86362001)(38350700002)(38100700002)(4326008)(316002)(110136005)(478600001)(41300700001)(66556008)(66476007)(66946007)(5660300002)(6506007)(8936002)(8676002)(4744005)(2906002)(6486002)(6512007)(6666004)(52116002)(26005)(186003)(1076003)(83380400001)(36756003)(2616005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: urd+XoaSM/9lJtZVvlXB89nKsK8eEDrOt6fckXn8Mvi9l1oN+ShEspWRXGr3hL7yHMeKUFpsus/o3QnpMMbWeihBG8ekBRss7G36MAgZKbXDfshJJwOrBaLA1cGAP+NJg9JvMF9aQzGUIGdJbe8ypokhAkLl+FUbJQb1qNgvWkaawMKWVJvIPv7awSXMGv2s85oUud38k6COjJBmifwNnAJsRXVpbtQYOvWHgrdVRrCkSigt0eqZH2EHfO2e0v0AHgYHAz+MW+G5rVziw6UwQoIxl6aarHdyim30OMxJ6JSwugBeYFsKZq+g8zNzEGlPWhNsqw28mvTMWI5U8OEML50rrXpJ7QVUrIYIQ/9bT6gxxcp9/mNHO40kG/dVczq25Wr3d5BKG8BXf+UGxWEt9ETkLigBpV+G/STQprXSjGDqitiM33Toz7Mfn1nUp9qYP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sA/OVgrsficlywjfgWN4mAj+jBvIA8odeqVaEoB/r1PD60Bu0dPMf9pUkaSPJkY0HudgTQNrsp X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: a6f9464e-ce2a-4912-5c69-08db82a14e79 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:12.2215 (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: 3svgnqUbTzQTTaMgPelnipOPsuK+iJvOe2sTvviFjrDfWAhdi3nDlGVbxuE+lfOgA1wjnHXxSqW2+ocGBjAKjQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR06MB6672 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: 1771196141295590411 X-GMAIL-MSGID: 1771196141295590411 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/clps711x.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tty/serial/clps711x.c b/drivers/tty/serial/clps711x.c index e49bc4019b50..0deb1d7b53e3 100644 --- a/drivers/tty/serial/clps711x.c +++ b/drivers/tty/serial/clps711x.c @@ -450,8 +450,7 @@ static int uart_clps711x_probe(struct platform_device *pdev) if (IS_ERR(uart_clk)) return PTR_ERR(uart_clk); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - s->port.membase = devm_ioremap_resource(&pdev->dev, res); + s->port.membase = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(s->port.membase)) return PTR_ERR(s->port.membase);