From patchwork Fri Jul 7 02:42:21 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: 116912 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2987875vqx; Thu, 6 Jul 2023 20:16:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlGyrwGBOUL4yLsVM/GUMSy1MzB+512t81UKIv9xpAnSI/6PwAi4QIuxqBFUmA8U4yc/3yLE X-Received: by 2002:a17:90a:5791:b0:25e:886b:c6b with SMTP id g17-20020a17090a579100b0025e886b0c6bmr3129389pji.48.1688699779972; Thu, 06 Jul 2023 20:16:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688699779; cv=pass; d=google.com; s=arc-20160816; b=Ap0IzuWcgN1wHtO2080hQze3Rl/l2XHHYPwAfIxeah0zmMHahNIF/3eilBEOrzX2M8 NV2VRZfT/+pB56CszVLkdsXpxRU1imCfRf7SdEX18HoBTZLIaOgiPuL8/g/+7Vb2nw5p Hll/iIhq8Lf9EsIoywY1jFSfeRmHmvgLbyuNE+PdU+x8zVOvasTYEHIFCiqaUODAKeTz svB1RUlofgH1nAs0x4tE0Nk0vdCfetN8sLetn5fuP/X9UAqnA+aDaaoDlsIZRX+xcXPb ktexAqrLmlzdPKM4KoYACURm4EX7JShcGsRfmJHBM78arL9SKR0gDKJy9bfMS4e5Sk3U Hbkg== 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=CUoNBOyR6FQc1wYtGFqcwqFYgvPy0l6AIiaNA3RZKso=; fh=nai28PM3WUwxnIHBNN+bxh+3iLCvQvHwsBrhWLtcNq0=; b=RvHtO82wdUfjDe9ggtRKU6I+x958il7PgVTfkQInz1CU9oe2NwCPT8XOlSTjHzcNrU OnlSmU87lCUwkJmfMChw9CFsJsUdGSmEXvaLpT7WS7M3/pjYGGzivXedGWQeomh9hLQO y/dmANJy6xf7wEcpxh00JVkoZ4TjhpDmMXSqL5zXbeUgm/oZXDokZM76d+EEzsz4WnAo w0iXrEs70NxDi6XHXxTPXggx6F6QdCweLvlIMSthmcEZDszHJW2yloOjM1MoyRlCHOKj cFz2rfZ49OhA8vygZwHSeQs8wUVN0ikzC3Xc7qg3Abp8dRXNx4dz5znYu9ZCv6ScGD8+ i+pQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=AQf3iBeA; 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 f3-20020a63de03000000b0055795190dd2si2672170pgg.666.2023.07.06.20.16.07; Thu, 06 Jul 2023 20:16:19 -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=AQf3iBeA; 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 S231642AbjGGCmp (ORCPT + 99 others); Thu, 6 Jul 2023 22:42:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229575AbjGGCmn (ORCPT ); Thu, 6 Jul 2023 22:42:43 -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 ACB2619A0 for ; Thu, 6 Jul 2023 19:42:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QfK4/PUHAeSrTlof4yQZUT4CjJ1w4sJFAe0jk6D98uAb+gtacZ1xFYj/RE7AvDGxpM5YKdaaSVN6+a0QGushpuMSeMLBc90KTFg6way7/9ZkT5riEgKIWynt9Kmhc68kHT2eJo4iHlBoyAJkbhpdipdqKQuxWRxrAdhYxt/rH+RYIW7eIKW1ps+bGy092K/1WmawyMhlqOzR4fmFjNY8aDQ62V5bJ5px3DccfafADx8htULK+MOluCJcRmQvX6Tn3HqHvnZdCH9yi/eyuC5qAyQuvfMhRczi0bqKaCs9C/GcR8Xtcx27aN0O1Yyz9SW2jBJrGiileknNlKaYrJEyng== 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=CUoNBOyR6FQc1wYtGFqcwqFYgvPy0l6AIiaNA3RZKso=; b=jOGm7iYBSz4qhVMMhB+PWd/KBwuH8RXFrc+Y3Tsgh8Jdrh3UTZ13JxSLJfRK3LfycLbXAq9sI5gG/4WPV1dJHAjPq9HTUxgtTHF/b4XnzjWVuZvLxuzHivoq0Fy/4DPqZb9DtEmotBGmt82nvNmrMBmNWu471K0wlNPEJXSfa2Y3cW3R6wTWomGrqOh8tWpePi+p8cQ3muuIT4J/NQXqb+1reTusk6oRPNYnqYPp2NpZS8iv+mmScJkKimZ3VnIodxpPn+5p1jlag9yvmMl2VzZybpSf94gj97H0ptVcp8A/8yyGI7GmjKNMqRL8QT8p0v/G1hxtlceFihFjJTLcsA== 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=CUoNBOyR6FQc1wYtGFqcwqFYgvPy0l6AIiaNA3RZKso=; b=AQf3iBeAiApJwNALygKSRBP1TdltgifBysw/OjlyPhe1HAUC/f3HjmB1phXXK9mS+ZGImFhLnHkq4///U1etXYJba39OzQCoh2OhMM7D0KpqMgM8svdCwaNCbpsb8JSj7xvrnJmMR8HpPF9ihPLNft7FZqubGao6bWXGO+lNjYEMqlU6mV2SwOXEs+/u0D4HjLeFWn+4GoHupAr1/ZqDvTkRNC77lvIw8b4hndXN4DrSFg0kUmFpuVUxywBqbY51uEpCe6k4ivpMLvVLqZiWVqgeicFmkwh2qv5/KgLybAcnbPZJUdXzdU1l5DKIUUjZ9zh+eSo31lLCP6gcDTsfEg== 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:35 +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:34 +0000 From: Yangtao Li To: Claudiu Beznea , Arnd Bergmann , Greg Kroah-Hartman , Nicolas Ferre , Alexandre Belloni Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] misc: atmel-ssc: Use devm_platform_get_and_ioremap_resource() Date: Fri, 7 Jul 2023 10:42:21 +0800 Message-Id: <20230707024224.78907-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 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: c6879d2f-e198-4cfb-ca0f-08db7e93d15b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: M5kFko5jvG5B9VGUehikau3LVkaxyqbP93jyrneh461JRy3FpWhLVodt64HGiVCfvHDEFWO3pDseaKs4m9+ARPAvofO7TKRg0KnPluf9msWxyNMoaX+NkxSm8BZ5zP93BQJT2PP4JAL4LAr1ehNje5t8l8wIfxbCcHUEQ3jKJcYiaetAnOzLegGSYETEG9O2yFPg+ntk6uxh2mu7Pbs7RinKGA5Q+6UscJVtj0Zzvb7ZC0nw9HjvVXGDS6vW+BgS+7EuSNCEwR4uL/TkZHp8ir8XIkZcs0oYF3CQNPker3Bj2yZne9wwZaebtyHiS0ALJ/vr0hjUEINQJQJmR4ech5CDHHJzvSK85XHgF38GaBJ775+ujU8O5CDi3sd2Vyza5h5TY5tX+8Z7/XGKi+/CEEzO/yQiHpUVnoUckvK3gBvI15D7VvQNXAdTSlzN9Py1jiQV1p14O/UZ8a6sDTRH+T8O/kINuGOyUmTyy62qphWnXf12kUannujzfeIhc3e0z18LfihwKJvWl1acSaC9yVL9YsiAWDdQRrdZM7SMJg0D1kA9VAmopceSkgRLAWl1fllBWQuP3DFq1yOmKyM36dEiCukMACFlbT22/0N6diAjvafRz/3iU+JlG1YLc91l 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: /0D6XZJLVcXWxdSVfelTTu5dU/94xPOtxIKh5No5tYL1KAIpU1DmRkw0jE7uO8JbvLOfupDCIM3qI3yIVmM3uNX9HT7Y7TZY5BJ6aNQ+/exA2vhSHTI+5HddQkCg07scsgj95Kp0G564KcRIEuHHkyxlUbjrDn1TQ0/mbij/VHy1zRSyy6hc5nTJK+5a7YPEas3Elz5Xj9DO0jlE+TCMPINjoksE3w0/ue61QnAQH9EKCDYBN5zAN8sRv/e4gqgLNxgenuKHSAoT1doR2DVKA9zQY2+qx+yD6nocotyg1o5txnXmlnTPblRXVv1FbxV9xz5J0mZohJEZHEPwE9FYcxB6W4SqjT/QSrKVawlM+5FIQvVcAbDePpGFVAGUAirwLlOuwcdh2PKObvB1sew0JTiXuctGWfN3cIDwrYz14wg7aYsAaNGY535Fl1ZlbWo7KDRwtLH2j9ddcLpNCg0sTls7FxmTgQaGbn/0HaEPITLML/+RgEroZc5UvMoPAmFhWWDL0S/XjeB/9XflzQY14+2Oib4s82yeqkAkboqHsnnTPp9pMDB85D0E+bfBc5r7NoEcpZDnTrD3tS0IXSVwhXEQYoaRLFUT1bmiKrk/MdRg++OMhQNsy/HChzoH/hWpDnoZLcMTBJta4hxEoKv1hfgq/dO4tz++As3ImbKikEI40GD4WSFbIFHEGK4F7SZETTkj9qLu8WW4MyXlb+fFBi/+NeJx+ADdgpv0mBaDBKyD30wNPAQoQsFqGREN82ewriib1vulBwlZYVeXKAzH9V00mjuBChmsrQDP55Vd/lzNJhvFotUUNnwXYx94ZvhRK17WztP/5VNA1xU2bspuVEP2Ju8t1TZD8dTJj3eLnzeapN30U6IMp/SgrORhl3HE253Nkjt2YWva7uyrqw+mBskuT9hjHmu9KK+ielyRyFQnQ2d1/C/zrZnSSp0IitvIe2ZpwQSJ85E46noIfDAxSRLciBsusWvDkyf+7hDGHQgT16uCDtEbv43QkXQaoVLWubUJD0Z14vfMH1Vfqey2+E2MLtodSZR5MwXk1dHx7/TdSWoJ723kZ7F0p4aMNPkK6XxHFiMfqcIDoBok10MGQSw2lgGPkx2VlfuBDfQlo2UDdbs9v79X+GXqGR/diKnU6yiAvIQB2ob4yrEZeXOPE8txll+lIOKyKpOSe+ESzK2bWVqqqIYNSCWs9sGMgKMwEqlbo3j83SzN8A/H/vYnF+V0dLsgTPuWF4eVbFrHCW2oAX8eNLBEipfvOHxq6LZ46Yk56WWckW+qPiobrYOEEsFzxlMzXlYBKvENFFikvf5f2r2gzBQaumkV6LtzYW6iOGRgQ9CMfcePz0adOmsZmHyPQFuF6/iwQrAkKME7tQkev5nt2w914wV33q9uEJ/K4DPUwejZtWgPkeMUVtx8yww63RrlC+Xvs658wWWF2Ra0xoiS6P7JvtAc8trtblosDC9x+lmz7WfLejj1xfr6g0WeebBz4HiaDLq1s41jLBaLmVGL0HlirXH39laX62Hu/SGpmwy3wfTEunl9kYuX2Mf/rqEm7NfUsPAx0eOY7wl8bTAFJ8E63UshhY1rfY/S X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: c6879d2f-e198-4cfb-ca0f-08db7e93d15b 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:34.6036 (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: EuVrZXsjzcg9FwulYNuzxUYyamqrO2/Qa8ZnuE1p2SQDItCcXxbMfuide29IlTv2NSXch44HMG5UwoHPxWB0cg== 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?1770730060556948746?= X-GMAIL-MSGID: =?utf-8?q?1770730060556948746?= 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/misc/atmel-ssc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/misc/atmel-ssc.c b/drivers/misc/atmel-ssc.c index 7f9f562d6433..ee590c4a1537 100644 --- a/drivers/misc/atmel-ssc.c +++ b/drivers/misc/atmel-ssc.c @@ -212,8 +212,7 @@ static int ssc_probe(struct platform_device *pdev) of_property_read_bool(np, "atmel,clk-from-rk-pin"); } - regs = platform_get_resource(pdev, IORESOURCE_MEM, 0); - ssc->regs = devm_ioremap_resource(&pdev->dev, regs); + ssc->regs = devm_platform_get_and_ioremap_resource(pdev, 0, ®s); if (IS_ERR(ssc->regs)) return PTR_ERR(ssc->regs); From patchwork Fri Jul 7 02:42:22 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: 116913 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2987879vqx; Thu, 6 Jul 2023 20:16:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlFzmwmntPJXoCrDSHm1HNhIfKZhXptRjd9CfbcBYOssvYKrKGzxmiW7egNn7QgPxH82o2mZ X-Received: by 2002:a05:620a:3722:b0:75e:d11d:51ab with SMTP id de34-20020a05620a372200b0075ed11d51abmr4136576qkb.9.1688699780595; Thu, 06 Jul 2023 20:16:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688699780; cv=pass; d=google.com; s=arc-20160816; b=ng9nXjrAluRURE0zBoKW6Q88OHCB3pun3n1B3ePK3z/IkjiEmksoC0uxaVV9V4PypU vhq+SaACWmLrsFjSqVksHWTa4F9VX3OnHNj8Hgln7vo212g1k+XPHMiPReoQQoBUlY2f I2aTMxw+Ve1BH9mGXKjodsDpdvPF9CZ5KpVr+12vRZoXOfgtpdH7fxFEDi2P4MYIMbsW 4UAnjPDadmDK8zdYNn+7pUsJ7galmYRq4I/TGU2IK7yX/TadW5aLViQh/8lQ6DBUBMMx lh7wPEKvhm3dTTqPS+6a2UlI3khK3VCN/T50yLs7MYBKqRmjkNQTr2Mb19mWvPwXLqus bzSg== 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=JPILx2WGJL6OuqPuDyg+504gLdJZpDhkZWCSEeM1ksU=; fh=u6gw0YMxMhKwGjDxQAZFKkcod2Afs+iHjgVzYP+sjyA=; b=GoafE4rv0xGNnZutWSClLA1dQb4jdznNN7oGChkA93LbZvRzJDyiTFZ0GoSHCMGit5 9xhETlxjJZd1IjHALUfRFxS74S7N9kQ1wQb9DAfvT/W7ErSo4LS1Pe/7Ss+Pz8vk+aVF IsI/noR3nwGCm0CP/EK/9T8x4wgdjWBgWhmy3T5r+TAZFZ/XWn0dqodSCGcdKKSBm3By bXOwJDL++Yow7EFG5pEH2mCEduunrfWSyUQCfugsgaIU7BWPbKqGQWJCZ1ghPHElrijm qV/vFQ91Sx0nXaDYBm4k9udQHkBUBAA0sl2/HFVvQ/AZfCc/WF2WZKHZhgoBAC3rTTPE 3DUw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=lVTG9UvH; 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 j7-20020a634a47000000b00553939d6a6dsi2662808pgl.44.2023.07.06.20.16.07; Thu, 06 Jul 2023 20:16:20 -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=lVTG9UvH; 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 S232443AbjGGCmr (ORCPT + 99 others); Thu, 6 Jul 2023 22:42:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231938AbjGGCmp (ORCPT ); Thu, 6 Jul 2023 22:42:45 -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 AB64119A6 for ; Thu, 6 Jul 2023 19:42:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ikEr4gXWHJtdXcTLbJsndqQ64dPDG3UKh3JJ9R2kjpL6tKEVan5diNTi0wociz2DAvkr1incrHZM6zHUGD4ZLDo8MN6mSkEr0fU1dFT2Z3+Xq8jrh7OBYh77mAwOvUlo3FAI5qGfR0p8cOkUkdvjN380bi9bxc356+iS01RDwq9DDu2bgqinE5/iqzZotUIv4Ids7IpP67qjhBinpjQYEchOMoA3epJfGiLYvpsvHB+0g3H62T0TBAD1tM5Iph2g3K6YXHlWMy4NYU0CUL+2qy6iWmeLCQP0oUJc5HoXR9w0czgSD5v5fStd2p4ZF2XZ1Q5YclbIlvuqpO7Tz8XCYA== 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=JPILx2WGJL6OuqPuDyg+504gLdJZpDhkZWCSEeM1ksU=; b=TlLXanWfEcNHf1QKOA4+WFOS9kAwKCBSN+GtsRXsaXIYD9AnyWN15xyuuH0kvknxiG5k02nrkbI35H1rxiWfSlB5o2Di74bhI4GwGoq9dBU9O2jjGQgOSCX2DP7CB5181/qFptiukTln2BMBqWiP4gVgl0fjmnHKGOI/K9i1EMGn6GLjZ9UDAhT8aVB/uPBPDsUCAzndyPESCGHXQISjS6LgkAazxUw3pjwinJFbz57D9U8/MvWIdMOKqn3UtH5hll5Zzvyh/YssDiZTl/hD+ETloasfTNb+LR6DsUMlladXx1NBEkGr5LEoEgQ/hze2tnWOxTfQa3V5OJgz9jMGLA== 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=JPILx2WGJL6OuqPuDyg+504gLdJZpDhkZWCSEeM1ksU=; b=lVTG9UvHNy7QBTHyrBR0VBGgUYQLP1sapsChGLn2TIKgJwu1d229OkKvjcfq/rhZTbbeATOUJ3A6y059w+C9YELqyyqk47weM7Szd+H5MImsZDXci5OfoKBM+OqVHYtN1svFQdf0/DTjD+qLQjoshc4eMczi0UnwJNJuDHpmrAY1emPKWhy4aoDJn3qjPRVS756eonG0mGjecnU2zMsbzmKa+8A3iqqYZNPinotABnWdH2TKAKXf7wQVez/TiCaliRffphA7HYShg+fs57XuE6FzvfI0vbJOh13Cf9lPgF1e966aa8+YxP9A2O+gCY4uCFeGnEz7XjUdRVuR0hxDaw== 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:37 +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:37 +0000 From: Yangtao Li To: Derek Kiernan , Dragan Cvetic , Arnd Bergmann , Greg Kroah-Hartman , Michal Simek Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] misc/xilinx_sdfec: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 10:42:22 +0800 Message-Id: <20230707024224.78907-2-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: 3451c66e-964b-4c2a-a5c2-08db7e93d2ee X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: B9+7Su0s2MfwjSsC6fBMDjuWa6BIV0lJOQ+pdaK4M2Tn24+VCU4F1TJxVGg54GJEX75v4Gvw0+9MCghzt3AiK29WdeSqI/5vyI7JWKBalbJpA12dhqd/LMt6V81enMc9gVOcUo9btqKpK0nfgLmt919AgfMKvWmqIgi2M57dEvKwFYiONtbbSMYC2jZ9T3Q5hQBtU64K3YkdozbBhbxjrtsatN/nQK6CaapBUFZSaYLLx2Dy0t7fXicN4Lygq04U00Jbnn/5iBZ2CFRAgn4y1wUToTkTlU2zE4X/95NVQBbdowqT7JrTK/6IGU6dA6qH3feyT6NnhFhi6WFbop7wxr4JoU7MdCVA9wQDIUgvxzFIk+ku+s7pONk5weUZw+rPBU7bNxdqeRqj8aI36p77Wj3t/GEm/t3ZbvXgZSyoKOgAB5y+sxMHBloJURausI6szZ6ioOK1RzjKibUGLhjZodurMyXSqJpVjO2JkOND6L1ZnSeSEixeQv8UoR4sHyl/DtkuZIT8G+OT4Zmp+r/PPpnD0XPOgLbHHGzmEO2yQIMbNe1/nVEX2Rr/znoVTWomkbm+AGmKQ01LrGvK92OWlbGttOARHiUo2tHF/EoI88mBfFhsoC7gJySiSzacHYgy 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: 5z2ISQyW5yIHEFsbYAXPtplgNps39vkyZ0+QM0M1dpIntrpjR3PkJbaCPBUII0l/O06Xom+fGaiSmp4D5o0Z/3i/QFj7WEFbEfMKeMuwhRtvEZC9fcFYGijt+tkmr2bdmN1UIM4U/R16Oy5gTJnuVMQIAy8We5nYH055f9WOuYX/PyGIr7UGnAwFMowVVrEufF7p4k6yFEheAkbN0D3QGzh5dC8ZhHF68WeD+LoQ8l8FqA7Bm8ZTvXDDF2QwjiWs5sZn73uEjNCTwQlFFvw9BLdlEsW1k77FdUuhydnoyKaTKhrQ44z0Gy6bvObPogfbB4j53Vli7Ewmzt5WPEniik2vImwW0K5tbuxSIMyEVbVf+9c7Vew2di1KmCtPqFZjeWiAKaR4CeAYEffhf7nzFmdR9b/mP2D3rOSn9qmSGK/Q2CHbyHAeHcZYHg6urCu4Uii9UwnhXPONdBKwP3DKgdHzptieg3HmJQX2UM1MP/mm2rmQj+TPLo5jcsaCIQrlC8jJfIgQ72KGw3aqUAF/PWewwhSPGEzeeCYRUUIMSi1PGQz07bNplP+ufviQofPd4FhduAf3zQJCLtHCQfBHEGAN6W5nj/0woNlfmqTV1bWreB9jwpT0s3dgBN8CDsw3pYtOG2W6SUQoQym2YWZfe1HQLDoFRc/gmGA7g3kpzQpc5sWA+pJjvKKvcSWvvngXic2JpO9V8tK2JGaFXc7OM+5Xp/soDMWRTaNSdWAczu1tIGS/WYLutoovUnFe4i+2DKW+k70mh/pHmpwGvkILRXT6aAvOd5xt4/zr1CsjcVDK4i41OUwkENdr++re2DJUzf+oAgBvF465roJPOLVlaf2bUnhUSogmEhKADNPMJLQxD8m8B/kfOc6rIT+3v9IFkfcsKsqJ9Np8Urx3qCbAqEnHYnm+upLeYaLFF30uv6o/lJzn59ey3G2CJDPYOXvQlGPLaCK+/8j9qyMhSXPzNuiM8FOAUqmUsF3DqcLVT7bNIidyMDTy3CfFK1mF3KVdePsdF8+TmyHrkeRQAmhBrQSA2ptX5fTGi4dCxMeG4psGpMPXnIe1OweOFym0+IDrijncomvEzlyPbgyQvNZvL45fDBEZvtNj7meaU2Esn/XdAJdVQD5R635FYlze1yGCNs9TL+sr+IKOz1yYJeaCyF59k7pxvRFE5ycWa5+hhw4GV2llBySXQdgOZQgi8oEqdwun6v+ws/Nt+0MTbm2MjUKeRFIBQ0awfibJ82XwZtS91JO+owVk3I4hrnE6FpYGxpMZV0mie4k0QHP/DA9rT4qp7TXm9u6TF7Cgh5F/HSvjW5vBTIaQFQSozY8c/c/Lqofy8+Ud/7MCrXygn4Q3gtKntCEUjcQHzohK7r49gjp/bnKrQeHg8D83f7u0O55NlVNL9KyP01A/F8yzq+xQ32aprDMEmOT+8sJg7jdwSUc3JkXcVLZ4szW2HXH8gOphLqKH4PxuMy35ZaNPNxvqdBGp2Yyn/R08Tb09OysUQ/gUSbMzXcpeaJMpkMt7iQXu6BSoTp05zbyVc8n0uzNBm5I7lut7+IfP4BziltqrsuMyUwealKfVZ8tPz/FWOUIr X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3451c66e-964b-4c2a-a5c2-08db7e93d2ee 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:36.9945 (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: uvr68kGLQLLaSQ+AMERxwXIvncDPRLjHAK5A71MdS9kU0tvhy+iQdqrA23T8kL/j6cCWSD0QuRS0IcGGDXN5CQ== 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?1770730061068046260?= X-GMAIL-MSGID: =?utf-8?q?1770730061068046260?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Reviewed-by: Michal Simek --- drivers/misc/xilinx_sdfec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/misc/xilinx_sdfec.c b/drivers/misc/xilinx_sdfec.c index 270ff4c5971a..0877c42fb8e7 100644 --- a/drivers/misc/xilinx_sdfec.c +++ b/drivers/misc/xilinx_sdfec.c @@ -1347,7 +1347,6 @@ static int xsdfec_probe(struct platform_device *pdev) { struct xsdfec_dev *xsdfec; struct device *dev; - struct resource *res; int err; bool irq_enabled = true; @@ -1363,8 +1362,7 @@ static int xsdfec_probe(struct platform_device *pdev) return err; dev = xsdfec->dev; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - xsdfec->regs = devm_ioremap_resource(dev, res); + xsdfec->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(xsdfec->regs)) { err = PTR_ERR(xsdfec->regs); goto err_xsdfec_dev; 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/+pASMzFpCVCftozxGVp0CwgZ3Vz8WVk5W6LfkhYHlZYKkYK6T0aia9tPALbJc9DEQubAQFLWlvsk46KoZ2dVjJsJKcjRKWHJUwB8sUXWdhdZTjQJiHR7v9psEf5r0yLVWwN1Ko6mXPa4hpAb+swQKFAa53j+bxjdyPpvg/ulydRJg/uL5nswWvG7YL5/MrEKuBhdk6902topTfcn0zLk7zIlsmcOiSFP7Ps1VvtnkVhSbU7IXpErQojuiZQR5x+DQlW4NGyeHIEEgomwT1vvFjDg30A1X/tWKL4ZoXuBKKRkEBi8mNTjVwk3LooTverSgcYjIZnXHo+LQWaX9ZdTEheeywlSKI5qVy/7B4mjj8CZ0Nu+GXHwp9hQItps9AYZxiZNqajIWjLg0BsH7yA1pHiP4EUN6cyuuQ7lPplek6XEgvgm/6CwGm7VD2nePPw1Wic4mgCIpZaS+ZgG5KI3VXhwLAkP0fYgz2A9soPyxBaJWMYhXVQATqcdNTpRS7wCOe6UzN6hp2buyQZIvZfkWi9+9B9vcoblviZw48cYXXnTs++5/yTtQFb3MvIlC5rxsc8mXfwBrAe64HDPK9aKmZX7uqASdkqFYFUy3yLMSCslouAuAy8gVSOv1EuSWx0Hhf9HKhmLjlTQBJ9lpD+OBQ49JaiYBtSv6avOvP5DHLYb8BnCeQPUQfeMotj3GgM9G1Wp+OZDd1oATYZ0To272W0JuYTOmYANrkl3vPuyGZPkR/yxtOVOrs5AI+TmqjIda4hmO8uWiKYE3gympUijMEZ5bKNQj/XpYfcktdwvExxShIEEyHa9FY2K2RfskWFvIGaw6Y9+093U+RfjC5JZkK3aU5F1MtgdCc/172oQZyDwO+h3EdPd9fZ0+6kr5raRhUuzab+oiGVRaS8o1qaPXjFFoWMUw3f1tlr9+d9xUCEGG1wv3T4Se+HHzGWUk9KVpXV0qgJ0PLcDO63A7AoUYHAffj14Rf89psqaFgfxATvT+1mXVCddmzgbnQk3E9+xDVPhPSInn1PvZYqd8XHwTrhFrMRUkQe29FKexT9xkp3sdBr16ooeMs/xDYqtTe9VMviPRJZg65IMGnU/BafggCv1jMKOWot6s2Ij8wvdMxVb9RaEMLmV30wf5WbNcWpg2NaC1YZqjUWfmTj6mRSDzSP/vvvFiSwC5vTKBtQ9mgnt6s4l71HRxsuptmwH+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);