Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37905968rwd; Tue, 11 Jul 2023 23:35:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlHbt6tjkw/IzYWd7npzqwRxwHFxy5ctjCX37qAEdWM50GqZ3HSUyCg+YJE6+rIJcI7smeHM X-Received: by 2002:a17:906:74d8:b0:98e:35d1:993e with SMTP id z24-20020a17090674d800b0098e35d1993emr18440972ejl.5.1689143711139; Tue, 11 Jul 2023 23:35:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689143711; cv=pass; d=google.com; s=arc-20160816; b=XwP3ks2YquCNkKJmrOS32+uXYT59mB7flfcEsOO9lj2gwuz4+8R4/jY9Ud+LmRPf84 RTeoCi2KccVtYLPPTqqe1T2bfMZNKnakKsGiVNGjZXBkPZwf8zHWtRYw0rE/AswbQDKt +tBklD6yXIttXKI13crb1g5R2f3rR8FvQd1Rt7ocX/MwDQSSFrp43+RZQ614/XiJGfLG 7qj6G3AJtVfQtsEP8fiUMjntelK/3Kl0TgjOn38U2BC8Aub0RiEo7kST6j6p8vKh1GG3 TvI1u3Yk5fZYS/alBhpl8Kw5+FozSK62znhnsFud8+13JVzV23sf/ddfm7d+MuLIL3bE wnPA== 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=3ERvSezg9PnZ/Q26izoUo2TeUcyCh39NDFUlOa0u5lE=; fh=POGUdReq10NGeBtYFnRcyuhFpo9CTSX7AqJS7GWVN3s=; b=QZBJzV3pZDU2jTuhmCnvtnmRnOhoP6CQ5e5NuEqB2M7ADnVI52sfByeIFqStGUM4Km 3dezk8ksy+N8vwIdlBRYnQXIXAoVzyiXD52a4ymiuUHkYW9pdzVHMl4Emx9zuJ0y6KRk LHCAtyOkiTiFSZgGUex5ymD1lkrhZoSAlv9NnzO2CT2NcmyEUDN5O8Zdha49PzEdcQ9R cvO2eLSLm5oJGrZKJjrNnZayPpL5l5cjuuFFyHGw5283uLcdkfcXyCvKxRwDc1AmYlp8 /Pyq9DuQqPe8AZ7evYkzvUfWOE9GAvkTs4+KD33uUEt070a8IdPMe8JfW173chqpC5PS 8aPA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=W80ObTAO; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b27-20020a170906491b00b00982a3005cf7si3464717ejq.605.2023.07.11.23.34.47; Tue, 11 Jul 2023 23:35:11 -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=W80ObTAO; 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 S230035AbjGLGbZ (ORCPT + 99 others); Wed, 12 Jul 2023 02:31:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232259AbjGLGax (ORCPT ); Wed, 12 Jul 2023 02:30:53 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2131.outbound.protection.outlook.com [40.107.117.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83F9D26B6; Tue, 11 Jul 2023 23:30:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hjEH7b5oRCb95/eG4mujlaWRBVNTnRp0Cef94tunP3XvJgx62kCeUHf2c8Qganrwhv53EbJAoUOKGkjC02H/2MfuUIdrimJBJVOn4Kandl19G1mI9vvpvRyoB7AdEklkELPZ7Ac0n4MqVPM5EZYyrM9Edyl7bXPkLXeocA5pAwRFBtu6z4JJC4n0GSMBN42ST/xYsvahXOZk4ZK5QRRAkRk/1za+SepVsng2WsHot7NmqPiILZYPV7TLyH6lsQ5uSju9dsc8RDILJ5sf53G38lohyiUg/rVWpDUHgAtXGYDvqBjYG7qD1dVLr2raHeT3WUsz7kqQUVSaH0EuL6k60w== 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=3ERvSezg9PnZ/Q26izoUo2TeUcyCh39NDFUlOa0u5lE=; b=FeeJ/uM4n2gmVby/dWEIrCNZF0TyzGuiRGsM4Gtw1AmQNC3hcZvWVlSNR/9mITbo+sptRWWRuTHc/vBWYg7kCqCSfm6nBNLErJtK73wwC5gSk/DhhXHgMXiXjQp66CJEawHZKAa8pLRomgW3RJ4CI9v5nRY/uTv84kjKuztcg9ETgIIXX54+wFwTjhry7kN1wzLIbLClmQNc29EOE8qx7Hrgl5CtvCgzMDaNZziO2fdErrr90RSsW9pb9OOdus5uHvwFSUEiu/AjkQBqHpk6+kl/Nuey53ZRGH2DJts7QRrZAQmkOulSrMuc2RtJXxs8yVXav46EwcoWq6I0a1rD4g== 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=3ERvSezg9PnZ/Q26izoUo2TeUcyCh39NDFUlOa0u5lE=; b=W80ObTAOyYQUr3F2d2EG1drpjR6GHPvP887SIMt8m+jeUdBLzaxV2f9DlYjZc7v76fUal5pf5uoQDT0JZyDwsKPBzN+Es+oQZTlS7O735mCBmP3Wi03imGrMiLiQ7RnNv457k7Zjd2F2oNI+1wq/zv4fzUwatq22DMi9cZNDBg/pe/g5tmz7/JzQxTo7vehJRTPeuy0ETwPn3nHH1/BEJ8z4IhBYrzwCe+QQoYng4YGReZkNez6CaBcCcQn75qXA19at5GYWbKQu0qod+etRHE1yXTY9x4HBGymHBsO/pWaDrkdZojpHi5gsENJVfDu3DqJ5q3cVVov4i04cC75xBg== 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:27 +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:27 +0000 From: Yangtao Li To: Greg Kroah-Hartman , Jiri Slaby , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: Yangtao Li , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/15] serial: sprd: Use devm_platform_get_and_ioremap_resource() Date: Wed, 12 Jul 2023 14:28:48 +0800 Message-Id: <20230712062853.11007-10-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: 54ce0f76-8d0e-4dc3-a95d-08db82a15775 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ePWCvwGKhjqvD1HxMYsSEaJoF5rSCKmNUFd6mkfNP6x9hpVhKs9HU/GIl5lmjfZBg2Hh3sYEULI9fI+OlD2nwQIwP1zUqwr+xzBNYwrWmZoCgUMggNfNuCT43hlSlNeBRPYsakAO4N23gAIXDWxz+iWcCZqeKZLMwZR01acrUqDpfJYAgxjNgOiNCsCyhLB0X2BR397nl+tPrQxzAEF82Mlng8YP8nvKvAOdM7qTr//H1hk2a8c8TM0EuYBMeNTDdzslNqXU5FMgy/OkHfPlhaBPNWWC0rX1tTpkm1fYbCbeCTx297JIT2GNFxFBy0HO/FYJCVK20C2YOfw8i0L2ZPFRYMnNwRojyqnJ2Xwya8hOkc9t3tVcULoL6e0P3TnP2XLYrx39MHrcipJfKoXwMsXRw+MpZb3wJly7Vu33FVaGlwOQodwF5/svlMibi6L0z+ag6n92kcQTdjc1KmUxQubrmWmZXV0NNpyAc5OJ/wQ34KBOWonUTSG5AVitnFjJSKO6P3Lg7JQxeBVrEb9BREJN2w8y48Z+ot5rzducWv3hv10vnYhokkTmNHaZjPibQhADSroojOx5kxrOCN6ZfPaLJ9qjgGoyYhOViqx6Mg6hZfWyerVz1ifTJYWU7GiP 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: =?us-ascii?Q?Gdwr3xYz5GW0+rF4CwzugAOHEsp1uaGaQCapGqBam8Xav257lY/pRCNeY4Uv?= =?us-ascii?Q?IABQiBkLexhPoQi74dxuTqXnWy3j9wAyPZUKaSBh21DC1Qe8Doo5mAdqopzI?= =?us-ascii?Q?wVP4AOE6WqAyHSxZr1f3iJVKUdviUNE6/+TwW3W4kp4h04dwGKLtcvpZwzNJ?= =?us-ascii?Q?ZsAzZ5UADJA2f17bOgb13HFb3VJMpHbqfT5lvqbwccuVP5Ky568uM18N5QUM?= =?us-ascii?Q?lBgO7a8dnPrvPfSV1ESV3s2t6aVvoNpby8L/s2rp+lDh8L1dLPwF2jBzZLsP?= =?us-ascii?Q?OFolWaPfssvjVUoDi1+8rdrPKC39pDuB0Gu6dl3rfEe6Hz0yCurttln3+IVK?= =?us-ascii?Q?5LAysOlVqi7nrps09X13InME9M1GLBuOVWFI8L+igA63m7Ek5TdczxodmiZB?= =?us-ascii?Q?KFX6Of1zpLhVL6/bC3k3/v3DLVBzqYKt6SH7sS1yZXJ2PmaeKHwtPddEq3k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7fAlt9fNWPvMgY6/xZueKrLHUECP?= =?us-ascii?Q?bnUYLGK+0SHlh41sHvGTxmdGZEr8Fyi1BWmRMZ4KqqjdBy6Ru4Uk7Cyvh16e?= =?us-ascii?Q?CNwFddnfNNlUsr6G2+s8X9n6iZif5Xx+azboXPrcVgOlB6K0yVGS+67+lTUq?= =?us-ascii?Q?d9w/DrtnWIQoJ/tlXJXYZSo+33NBAmLEKNFuq1VL2/+VF/BbIa3LuD0ZFyzm?= =?us-ascii?Q?GtYRLk6cRiSMAJvWHw9BtmDsuScI7LVLxmnLOvZi?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 54ce0f76-8d0e-4dc3-a95d-08db82a15775 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:27.3981 (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: t9EOqb885aaP0yf9387l/8k+YxCTqdpHeez5lh/dA39TFsgWg5PhctW6RimrGnGBNmqSgE1Hwug8+ZNlqf05nA== 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: X-Mailing-List: linux-kernel@vger.kernel.org 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/sprd_serial.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tty/serial/sprd_serial.c b/drivers/tty/serial/sprd_serial.c index b58f51296ace..bc47229069a3 100644 --- a/drivers/tty/serial/sprd_serial.c +++ b/drivers/tty/serial/sprd_serial.c @@ -1179,8 +1179,7 @@ static int sprd_probe(struct platform_device *pdev) if (ret) return ret; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - up->membase = devm_ioremap_resource(&pdev->dev, res); + up->membase = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(up->membase)) return PTR_ERR(up->membase); -- 2.39.0