Message ID | 20230707024224.78907-1-frank.li@vivo.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> 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 <rfc822;hadasmailinglist@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <frank.li@vivo.com> To: Claudiu Beznea <claudiu.beznea@microchip.com>, Arnd Bergmann <arnd@arndb.de>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Nicolas Ferre <nicolas.ferre@microchip.com>, Alexandre Belloni <alexandre.belloni@bootlin.com> Cc: Yangtao Li <frank.li@vivo.com>, 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 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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+5FIQvVcAbDePpGFVAGUAirwLlOuwcd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j1xfr6g0WeebBz4HiaDLq1s41jLBaLmVGL0HlirXH39laX62Hu/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: <linux-kernel.vger.kernel.org> 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?= |
Series |
[1/3] misc: atmel-ssc: Use devm_platform_get_and_ioremap_resource()
|
|
Commit Message
李扬韬
July 7, 2023, 2:42 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/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);