Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp28638435rwd; Tue, 4 Jul 2023 23:58:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlESR8UpnJYbuRnlLDKIbV/r/Gf1UC3hvuYI3AL99AFelxv+1u7cNf6LlhRtOZx3uPS8LqG6 X-Received: by 2002:a05:6a00:1591:b0:668:7b5b:c1aa with SMTP id u17-20020a056a00159100b006687b5bc1aamr21135424pfk.20.1688540311102; Tue, 04 Jul 2023 23:58:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688540311; cv=pass; d=google.com; s=arc-20160816; b=b016HasA7H5L7WANSLOg1t0GJC6fu7TUFK26XS84CLJRibPvtx0CkdJiiKnoFJk8tM +R2+iiFO2i/28Zo/Zg+55xgxoKWTH0HjL0cLTfGpiU7Ly7Int1Je2isZuXiQK+iffAcQ 8qlq05f/GqvwARPWm3dxK1gqNrjIoUuLJ/KgCjJYWjR9n7i4Ipen3dJxbTyS8ZCizXxj EVIaqkYZYjfd/v4S6BA4w8IJJzTVf56YYgHE0Lk1XdhAYuab7NXqIQMA+2xPoPVuFfi2 shzqhVIm/PO8uLKHTjVtwGQKq196OH9+1BhOjc667jkDFLWie8Eo1gRGTjoN5AiCvNyV YPVQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bw13-20020a056a00408d00b0064d545c8466si15407212pfb.287.2023.07.04.23.58.16; Tue, 04 Jul 2023 23:58:31 -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 S231818AbjGEGyU (ORCPT + 99 others); Wed, 5 Jul 2023 02:54:20 -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> Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: =?us-ascii?Q?TVpe1W47j+LcN/koSW8ttFUDTL1kurGkwEcn/4wSUpyXcQTMiVMac5iteuoN?= =?us-ascii?Q?8FCtjn52845aBMn/DfykOsU6plkkSTBGSWIkBoCs0ZHru9nGW+/IqrrE7OD5?= =?us-ascii?Q?8qgNAjHUO+V8sMinENPm9af7I+i++OmB+uicp+s/BGhpdalt7+lKQF6MJz5T?= =?us-ascii?Q?3OXAfXTZjjnqLrDHYwCArpm20YckfRmkyd3TJ6EJTWJTJ4Z1ENbXi94JJLfa?= =?us-ascii?Q?iRNdkfI00Bzbo6uUiUpZBrSmt3j8TaYcBR7OTJwOAgAR5y7HNH3nlcon+gmf?= =?us-ascii?Q?R/mc0KUpiY86ZWaEfxJLE2p1wW56l7FliTAMEfRQbGUr/Dx124ED+UnnSqxQ?= =?us-ascii?Q?TZ2QXifxnGtWsIwlEx7Kw1prakUe/esQ57F8Nd3nwqTJeKByLOyOUgnft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qZUVwumvO3rQGSSMmbo55tcLRKRnpJDgTBAEqU?= =?us-ascii?Q?NtaVQHAm+pRhOxSS4NQVnDmq98PhMf06sSEGZ32s0E5MZCMGCLxb7C4YMz2j?= =?us-ascii?Q?CHs8phFeDMcsa18Z53qttNNigQJYAAesrkFyKeApNKZFdu67US3NgVUCfIUO?= =?us-ascii?Q?GsLZvgeo9dY+AK4NNkljueTCXIWq+lqdGPhh9k1iCqVg9CmyOYUG7sOoXukP?= =?us-ascii?Q?9UiOy6CCUv5otowuK9uOya9EcPFLYkGRx788vH0V2MqANn/mFnPbMPkJ0/nq?= =?us-ascii?Q?EPYYWZDDqEwoJ6uaoi00r9gpVfQxQ4WssJE184IT?= 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 Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- 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); -- 2.39.0