Message ID | 20240822095911.1644729-1-bo.wu@vivo.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5FCF4C3DA4A for <linux-arm-kernel@archiver.kernel.org>; Thu, 22 Aug 2024 11:01:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=CCs4cUO+FnPpFNr90feC2GCznaYbsGPqupsQA81Df6s=; b=MzRB8buCLfCt92GcXLVDwG9HYv jaxSL9+/6i69kyVqRvXUSWJ6YPo7WhV6pO/r8iMtoNtdPkLIogMtq3P5X/PSCQdnPOQH2Sd6eWy5S ts84LpMPr6nGvQM9pmFKOcIoUsiB/e1QY0mBUndlbOgHvqss6+kiGrWBRlIj8+ExhnjvaPHLj2/GR f5UWlnxfvLsS0wgmjviccwH/wjnhlNOyOW0mdsFEJXHOpW4UqwYSGo96SI8hO5aGkuTrp7b5QOObp Bc7jRqug+Bk8mharQVNWtqtCgvupCbWD553ATpw1iUZn/T/p3hT55L07l2nrCIbwd3HOmT7uxM0Dm qjR30QyA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sh5Yl-0000000CVN9-26up; Thu, 22 Aug 2024 11:00:55 +0000 Received: from mail-eastasiaazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c400::] helo=HK2PR02CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sh4Mj-0000000CIcj-1wcv for linux-arm-kernel@lists.infradead.org; Thu, 22 Aug 2024 09:44:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ArorOc211oyO6TQtk0CM7Am1UaKLdmr58yYZ1ygN3UvJaxWRh5zBE9JiTu2MoAHyRokB0GWvcW0USmTV9mQ7tkS0FkA2PDCDMxiWNoN59EdnwL/0rh/e6zuKdpSFeqd5ukOdbuOeuwZGKx+EG7wF1G9jcgjpxYi/gdDs/dDCV3pDsI8YLloEo8+oxW/jovBr9H/TKiU+lDRLctzuuP4pJ9WLeOe2P7wkXL4NNWbktRzGP5u8XmTZkNOhu/zwi26cU5npgqtLuyN4bK7NllcVuMJhfFSvzt7rO98iEZQr9QazM1dOaahZvOV01tkOmE2nTrL9hsaG5MYnH6PVx0lM0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=CCs4cUO+FnPpFNr90feC2GCznaYbsGPqupsQA81Df6s=; b=v/w35PRnHAMQjiUVf3yiQeR3n74g7MbWysZHzkn4ub1PsRN764+yIebZ1BGmt8C456uY7hVCeb6aHnaGlJHDlh2oJqxlZyt4x2GrSuNYm2+BPQlZttm1Vy8SbZK0/LNoAk1cfufgdVuMm+znfeCO9MzWDmvu0UY9DG2x5PG8T9jUnDJ8N9/RHpvBH5dP/7jRUUUFc+J/voiSAXxMZDq7lFAuhkcOkmS5WWCLaLICnNivKbRF58p+CVb9aY2BdTRWJ0HKSAtHwG8y42jnmE5NeAYE7Sy3l2gHGWe7cQmejzbTaqVSMNgLIo64DObvwJj2FRtdkq9X+51ffqqcABMsrQ== 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=CCs4cUO+FnPpFNr90feC2GCznaYbsGPqupsQA81Df6s=; b=ogoNV6xN+8NBmzA/FT2iF9+66wuGQDpiulzYc3fevJCShNg3KioCFrBgbcvXm7aPFOLkR23cmWwxDOmrGJOezvFI8Xmti4ZIN1OKkqzbsF+XPnUfLbpUaj9QZ29U9mXDG8k+AmUXnJxPbU3M1q6QBSJ3VqJuFe5D3hDMq59TChFnb5Fps9cwcXzvz6oxijB3BX2RW986L4ll2hsG8KSZYxCPm6XDGE9FGSqlU2/eC6UWJVhFGhiK0MJaGxfDIg7gUU2IGvzBLCE6tksyIKfjmfnf67xPT7IHrs2xuYCqh6rHLaNQh3PdT3JVgPfJzx8xPtN0x9kls5eproqjJ7A4pA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from PSAPR06MB4486.apcprd06.prod.outlook.com (2603:1096:301:89::11) by TYZPR06MB7315.apcprd06.prod.outlook.com (2603:1096:405:a5::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.19; Thu, 22 Aug 2024 09:44:14 +0000 Received: from PSAPR06MB4486.apcprd06.prod.outlook.com ([fe80::43cb:1332:afef:81e5]) by PSAPR06MB4486.apcprd06.prod.outlook.com ([fe80::43cb:1332:afef:81e5%6]) with mapi id 15.20.7875.019; Thu, 22 Aug 2024 09:44:14 +0000 From: Wu Bo <bo.wu@vivo.com> To: linux-arm-kernel@lists.infradead.org Cc: Nishanth Menon <nm@ti.com>, Santosh Shilimkar <ssantosh@kernel.org>, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Wu Bo <wubo.oduw@gmail.com>, Wu Bo <bo.wu@vivo.com> Subject: [PATCH] soc: ti: smartreflex: change to use devm_clk_get_prepared() helpers Date: Thu, 22 Aug 2024 03:59:11 -0600 Message-Id: <20240822095911.1644729-1-bo.wu@vivo.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0176.apcprd01.prod.exchangelabs.com (2603:1096:4:28::32) To PSAPR06MB4486.apcprd06.prod.outlook.com (2603:1096:301:89::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PSAPR06MB4486:EE_|TYZPR06MB7315:EE_ X-MS-Office365-Filtering-Correlation-Id: a187c96e-8515-43b0-6753-08dcc28efb65 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: I4z/2e+fCNhZA+aCTWmzF2gJu+wzFzmjLGh2R0eqrrhfmBE4VfzXE1c6nQxF49plPCTiHCd2+odIJ4f2Y4UndvhpSP5ToU/RrRp5BuBx5IvAkv0PKLGrzQxzVPLM9exzZkDIdZPsLRfIyseLXsUbg3HGlqbREYwxHb/1EP/OO4Cs0Xg6in6OdBVJUkVHm+l+1Vu2lgM3WO53lmgZxFr4roIEjAlaCs/oQtt0MrryEH0qaO4wew/DSQMiXEtW8m5NkRqyN//ftByRyL/mJXEu9drWHHPXIiK/8DOwqMY8YiuZ82SSoAM5jO3dqUDyj3qPywgbdXpKCODysrlUyhFhXgLZjGlEihbTagj3XgavSLgmdLDJY7E+X4ovGGIzw7F63StCXYMdgEudZG0coo+QLq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V:NLI;SFV:NSPM;H:PSAPR06MB4486.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(376014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: b73k3Rv19pHCSHqUufy0/ZqoPUlq3UsxV7pEl6lwMuIFA6sj9KUzzCe4BsaJxS/sH1gFbg4WxlD3Tmwh01TXQkgonn4yJP3LHtdNknkArLtSOsk1+x/tinOJy+aOv1VXDgMa1ecFNXZPS9412T2qyWqLUCmWyI9J3KkKBxgIIzQEzqR7Wn3KPAqSGNg5mibNwSDj/O+QYwfHE7xyVaFbB0UoUFUhxI3ycAbrLUIcUX+L+60Z9mTbeXQ+XnI6a33/qW6dlNeIOyPMHUI8xXOzocHuTkUH5uFSQS9r5cmMbAMAP5fx04DhIwN3QOefi7TxvihGgG9pmQPvI7Vksg9Cedj+TQtKErZwM6ahXXTMf1T3OWSJS2vyz/gI1dy+B/KggK4yKCFg9ZlWxVbazPLRCANQ/k439IPrkNoTABrFyyzWjpC6pjJvTF0CV4nS7vhnzTypxqsAVTgF4aV0MZACCtGXu53C43VpKHa52QfPouOl7xoma4WiGOrkVVdVchCdkI8xBlbyZIzt6mFMJ9nSrLRcyhybH4ex7Y3ZjmV/ahXJaq7k6baBxHxLynj+u7ODOC3njDNQ0QCql+BQpHm5ujGkvQ8MgfXHF84EE2eIHsL9etWn873X35oLbnnykGjp47hkd1+Sgeide18w1pHVGgE7NVF3UqYoY1Doan58n5prhkTVEZ/+6i/dgqerJEBOcoXW5C3GdcZgMEmiQrTylPy4VATgPzqUQcP16BqzpgHWJGNSm2Y042R2sSpDBLR2G5Ots7euajkvU3r+0YHNDhDbzGHlmed1fFytTHAbPeRZKH2f2Y7IWIRwu8nUxBxTxXQzuLQbN9yF+o6GlqRc7EmyQx58RwtRk67jhRrm+GJiYasDqo3ysjjhTMqnyR2f6kusOnrpxhUuGE0F0kG6i1ZJxrUYuCFLRWIQcwG6bTXc6bD/MTRQTcg93mKgruewinpUhey8xZIoKMqVTg83E3hI2aLkiUY6agU4w9txeOVxDwKYnIMJ9mwaR/sGbgH3NZGY+7QhDDUQyyKZR/kaiTfsC6GqyThL9H56UwxMYCnpImTxeCiSo+gatz1Z5hF5qolvSktqVaJLOAMDnsZKZSlX7fTeMBvjr5EgyxP4CFi7g/NWrQepQkHGo+VXRwVmGKpiXSRBe3BfrGKWAjNB8eWqaCHPo4bfpKTP0T8VioMCPtXshjUycb5Tw9PFSfVmipZfKVKtYcorCILB2E1BmJDiUQVJ129RXtQYikR/ew7cDsrDFu5atvf24pNxY6X4R5Kbw/3fJObwHyRGT5G6jX5AN0zZGySESmFeK2TWwEmloSqaSfC2cQh3UblHX96DTRaJ5jUowQo1DF5uMI8U6hTjy+RkdhO+swCGNjSWYgJESlxcVvhzjSRi4vJisYbTBv78ROfCDMWWiM6XugY5c3uXoFH8mm2Q+cdkAQeLYzkl82a8oWvq/V8UFLrJvw8oFCKbTp4liTnHP3NoxALsgFBOsuS6y9jDH6vL4/pPe1r3vF/sxYQYfQdidZ6colNEoRKT7i0uqWyGhDjLRGkF4gIZW0gDKQsuEwdXQclE38cG7k9swZa4q/saqoreJ+71 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: a187c96e-8515-43b0-6753-08dcc28efb65 X-MS-Exchange-CrossTenant-AuthSource: PSAPR06MB4486.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Aug 2024 09:44:14.1045 (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: TQEAs5WmjTsGst8MJGEXsZJi72sIvZxrJdiUXCZNmce6aw77g+l0t+Fp4FiAIremGBvf7wRcdSsQrV6UW/SpCQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB7315 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240822_024425_528131_174CAAB3 X-CRM114-Status: GOOD ( 10.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
soc: ti: smartreflex: change to use devm_clk_get_prepared() helpers
|
expand
|
diff --git a/drivers/soc/ti/smartreflex.c b/drivers/soc/ti/smartreflex.c index d6219060b616..103ea0ae7661 100644 --- a/drivers/soc/ti/smartreflex.c +++ b/drivers/soc/ti/smartreflex.c @@ -844,10 +844,9 @@ static int omap_sr_probe(struct platform_device *pdev) if (ret > 0) sr_info->irq = ret; - sr_info->fck = devm_clk_get(pdev->dev.parent, "fck"); + sr_info->fck = devm_clk_get_prepared(pdev->dev.parent, "fck"); if (IS_ERR(sr_info->fck)) return PTR_ERR(sr_info->fck); - clk_prepare(sr_info->fck); pm_runtime_enable(&pdev->dev); @@ -928,7 +927,6 @@ static int omap_sr_probe(struct platform_device *pdev) err_list_del: pm_runtime_disable(&pdev->dev); list_del(&sr_info->node); - clk_unprepare(sr_info->fck); return ret; } @@ -943,7 +941,6 @@ static void omap_sr_remove(struct platform_device *pdev) debugfs_remove_recursive(sr_info->dbg_dir); pm_runtime_disable(dev); - clk_unprepare(sr_info->fck); list_del(&sr_info->node); }
Make the code cleaner and avoid call clk_unprepare() Signed-off-by: Wu Bo <bo.wu@vivo.com> --- drivers/soc/ti/smartreflex.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)