From patchwork Wed Jul 5 06:53:08 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: 115986 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1698561vqx; Wed, 5 Jul 2023 00:50:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlHPNduplmeQoJiKvJslfl0iL1nbKwmITZ2nG4Bqo9HLa0/TN6xKkb7WW4qJrpvl5F4VLvAC X-Received: by 2002:a17:90a:d48e:b0:261:49b:d65 with SMTP id s14-20020a17090ad48e00b00261049b0d65mr16922496pju.28.1688543428211; Wed, 05 Jul 2023 00:50:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688543428; cv=pass; d=google.com; s=arc-20160816; b=faA9O+omgPMdiqCswJroS+zDi2kPInrDIZomRMfeT6D5f3Owkib7gkN4zoYLWE3S6+ oVBTeXdYWcFLxQoUZXubn+IzkDvLDFk2LZ/hGqj/SOp3gRvadg6gRocPUKHwZ+F3HFHa iHCOkdM5PuUoVvQKSK4lBZQ13Ab418DQY5saOFinndRjOuy4hxRH/8jMid+1sieRbXgw YpPgo3VfBh8nj2P8Aj3hLS9EMST5cVTr0FK6V1bil+Zi60858gs3SxrOBGX1d5YibM0Y oIn6yzzqcfSC8Zgjm0KU9fp1r1smCFFXzoc2nPZMJm0U14r9TJUzT/r2o5ddynp2HAbd sexQ== 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=+KnpWChdqS1whmGKWMazl9/oJ2x23VzOQ2vXpsgMdXk=; fh=cE9S65RnRprBRPOGxM5aEI0rxiVSLG//Fw6JDDXHJ2U=; b=MKpx9JR4LBx96zcrmW6Fvk/+w/URfspHYD+VBHBgNjkWu4mENfcFfuBWOjuf/WYB87 ki3H5VdP0D5/VG19xj9B8IGPOgFFtfKfJ+KnAcJjHhQa4aPFYNOCzpq6BQOLcZwrIPJO TCirlRs/nTXrMji8YkNes7tUQqFoPRdI4CkO5q9j+GBumvOkEEGC6gj08fEqSruzi1OF 5s+/m+qLAFexk0uzcPRwK/UTwj4uf23Gn+lE2QbKLKASsFOu44uUtcsaD1aU5BPE5QSY ngt9f5U4Xd7l6S/rTdOTY0TCbrmKvSCF09FmmE+8JrKj8/sJGSJkKkRK2DJ+PPU5QBfS u1+g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=N6enRGDI; 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 c5-20020a6566c5000000b004fb8abdd188si20755270pgw.115.2023.07.05.00.50.15; Wed, 05 Jul 2023 00:50: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=N6enRGDI; 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 S231820AbjGEGyV (ORCPT + 99 others); Wed, 5 Jul 2023 02:54:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231833AbjGEGyN (ORCPT ); Wed, 5 Jul 2023 02:54:13 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2122.outbound.protection.outlook.com [40.107.215.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13D701701; Tue, 4 Jul 2023 23:54:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ke6P1GXbV3kqBT9lHkP3w83j6bBXNWlS0rEh79ayKXedPLwv1Zx+HNw9xMA/hu0n4MczRYfOdsPkuDewscXZ18Z1MSOqXfcobvUcP5/ZfQZja6lp9/sYXdefA6jPoX2w56BXzqByFznNlIwcltz/MTrsQF+OO/MewQDx763Ky7glgYPPqAlMLJXptfEuEZNj5WPey/Yh6x3/Q9575yWONu+nFuLbPbE1/3bnr094F4oIfFEFRARVPKhan3gPqFIzAiQbNHRJV3YrF2myiqmIHmDHdhbfSHryF8tyPAG/64D8xTnOSuyy0zpGzL6Ips3owfSZO2pSmSB0r/sUFeqBrw== 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=+KnpWChdqS1whmGKWMazl9/oJ2x23VzOQ2vXpsgMdXk=; b=l+3x6U9esH+Hdn4LVvzD60wmToF0diCkazgdHDHsLxnfxTQSgqTjdIP7shTeduzzqACa8/ilJIwj9hD7Y8EwODUzMRYhNKN54NQ7reIe72jQpc9EOf73Z03WAzKrI/0NxIw1nBRs2ICsQ8Db2fvg43l6Gih/DXOkeFkW/FICQ7dOQliqidwTQ4LkyiTUPM0n8Sne8qBUYUQ3KzAWXwzD12HVrPv97AAUwwNFSj9F0HsXtwyyqbHzt5f3Q4vQMKnwIEEfbONz90NqRizY+xaLkn14wNsTU/1ffaMfW2RLqottbv8gPpk4X/nRzvhg2aNYgzotErXblG8bNSHEi1mfKQ== 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=+KnpWChdqS1whmGKWMazl9/oJ2x23VzOQ2vXpsgMdXk=; b=N6enRGDI5Q9N+R0S25VqmSWZ3900fXdylc1WOyiF2tIJFYkQvSRQhPuhVJ27dFru9SpGBQF2ZwSVjHL+MyEZHl5RtoMhbLDFgHFYWBoVdeNeA0v8b9LT6dHm9NBI+o2h4cupnU/+O8JwWrYQfVN060/WARFjO01CKWwWz00zaGLenyXUdOTlou1JKiLuu6Mz3XaILWMrpZ5KcfNkVEphnMcNHmRxckEcu4qe0+RvSRILv5J+ZkJMKxfQfURnfpoeiHjMVb1s9Or7zerSEIYlkpc8YFWRbAeW8QvMJea+DXya9C/SeYN6k7HGjG9/Frj1gJmWs+rBINRcHJsTR4wuYg== 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 SI2PR06MB4140.apcprd06.prod.outlook.com (2603:1096:4:f1::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Wed, 5 Jul 2023 06:53:40 +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.016; Wed, 5 Jul 2023 06:53:40 +0000 From: Yangtao Li To: Abel Vesa , Peng Fan , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: Yangtao Li , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/13] clk: imx: clk-imx8qxp-lpcg: Convert to devm_platform_ioremap_resource() Date: Wed, 5 Jul 2023 14:53:08 +0800 Message-Id: <20230705065313.67043-8-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230705065313.67043-1-frank.li@vivo.com> References: <20230705065313.67043-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR01CA0196.apcprd01.prod.exchangelabs.com (2603:1096:4:189::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SI2PR06MB4140:EE_ X-MS-Office365-Filtering-Correlation-Id: 180c99a2-8557-4237-e080-08db7d24909d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: px9P2722ZWtpmv8X9et0zhR+ybIQuBX2vA9yJ+MqWUycBDnci74akqh0mHbRPgYhRCBECzrEuZtWU7oQX5ImDUNHa1jLGEG62AS/BUYq+K89JyR0gXsIZSPgRRYpDF2Sz37HUSvAG0HLSFRXVqaHGzphCDoPw02xrU/NtT6EDxO4TpLnD3Kuaxo0LN7y0ZiH/fhhg9brsW4C3tDgpiQGjfiwoAL4vuBEaGMcCnvueK3Qq6Ga7xZ+aeR6JZ7mGb8mhICwVKXTh0lQwzgIUyBZ+8Axvb1NRlXXGxAhb1DZzUklIx7tWNoAiqkV5I+JnXGINDAsjsDSn7kXfedXaHB17+TF2Q0k4sz+0/ppJnj/6884281t5AJMv46SO6aAE4prvD7ODVT8GJ8EWEOEgAQK4mKKRqftAFx1TKHmMqSlsGfOMqVH0QTunfyYYZJOmlfzS9edqAx10DVwomiDU5mdENyfpyYddRBkvsP1no4kNnWZvJyQVhwODGG3LFVgL1bWSFSrEzFJKYXy8eQrMARO4A/ThZkWpjQEA2WzboCne5IHFZZjy9HEsoRLgK7BnoKI35xBKUUT8q5XtkX0MwL3/33a4fKwnw32BkLPUOftJ+ikSpA9eIQ1qaUM7nhj69Fi 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)(376002)(39860400002)(396003)(346002)(366004)(451199021)(41300700001)(8936002)(7416002)(8676002)(110136005)(36756003)(6486002)(316002)(5660300002)(2906002)(66476007)(4326008)(66556008)(52116002)(6666004)(478600001)(6512007)(38100700002)(38350700002)(186003)(86362001)(66946007)(2616005)(83380400001)(6506007)(1076003)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: TVpe1W47j+LcN/koSW8ttFUDTL1kurGkwEcn/4wSUpyXcQTMiVMac5iteuoN8FCtjn52845aBMn/DfykOsU6plkkSTBGSWIkBoCs0ZHru9nGW+/IqrrE7OD58qgNAjHUO+V8sMinENPm9af7I+i++OmB+uicp+s/BGhpdalt7+lKQF6MJz5T3OXAfXTZjjnqLrDHYwCArpm20YckfRmkyd3TJ6EJTWJTJ4Z1ENbXi94JJLfaiRNdkfI00Bzbo6uUiUpZBrSmt3j8TaYcBR7OTJwOAgAR5y7HNH3nlcon+gmfR/mc0KUpiY86ZWaEfxJLE2p1wW56l7FliTAMEfRQbGUr/Dx124ED+UnnSqxQTZ2QXifxnGtWsIwlEx7Kw1prakUe/esQ57F8Nd3nw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CqVg9CmyOYUG7sOoXukP9UiOy6CCUv5otowuK9uOya9EcPFLYkGRx788vH0V2MqANn/mFnPbMPkJ0/nqEPYYWZDDqEwoJ6uaoi00r9gpVfQxQ4WssJE184IT X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 180c99a2-8557-4237-e080-08db7d24909d X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2023 06:53:40.3660 (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: gm2gNPC636meavFAOW1dUyYCg+KQfaNl8RRG7+/J6YO7LEyzcwPKdRSK6QtbL7RTyrmTQE/7Du2YRl1+iBPUSw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4140 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_NONE, 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770566113994936297?= X-GMAIL-MSGID: =?utf-8?q?1770566113994936297?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Reviewed-by: Abel Vesa --- drivers/clk/imx/clk-imx8qxp-lpcg.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/imx/clk-imx8qxp-lpcg.c b/drivers/clk/imx/clk-imx8qxp-lpcg.c index 5e31a6a24b3a..e0ee9a2572d0 100644 --- a/drivers/clk/imx/clk-imx8qxp-lpcg.c +++ b/drivers/clk/imx/clk-imx8qxp-lpcg.c @@ -183,7 +183,6 @@ static int imx_lpcg_parse_clks_from_dt(struct platform_device *pdev, unsigned int bit_offset[IMX_LPCG_MAX_CLKS]; struct clk_hw_onecell_data *clk_data; struct clk_hw **clk_hws; - struct resource *res; void __iomem *base; int count; int idx; @@ -193,8 +192,7 @@ static int imx_lpcg_parse_clks_from_dt(struct platform_device *pdev, if (!of_device_is_compatible(np, "fsl,imx8qxp-lpcg")) return -EINVAL; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base);