Message ID | d781c7fe4b8ffc804de1926893360d4295cd0091.1724728767.git.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 09918C5472D for <linux-arm-kernel@archiver.kernel.org>; Tue, 27 Aug 2024 03:10:51 +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:References:In-Reply-To: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:List-Owner; bh=IEmNn7lhlbrAfpdudAjAujvAqMEOjI7waIzAHTjPkz4=; b=oe++Ni46VobeXlgTkrOrWxF6Ln FrynxiEsV4c7zNi6+M3wdBmDCTAhBxhT4kHk6GC9v/0KSM2yXrlvpNG30nuko9tcoBEBKjzJGSAcH Iqx5bI9z9hpScSuiTL0ZczL2xRy1BXL1IFL27Ikfb0itFVJ0mctre/DjhtWOb7zqcP8ivdXp9V11L hti1o54kMse/Y95MeJLwRRSsmPgtxajD1Zztn/VnftD7TH6ek00NFIu6xnSII1SCSlwgFZHhlrcKU eoM9FmaYlUUc9IC+yALGu1Ml93xt88BdbP+SS9r0rGiBi4a4isZEDQRPYJQ04GsLaH/SCcoV+9pcv Hi6bSXXQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1simbQ-00000009Z2C-2EJu; Tue, 27 Aug 2024 03:10:40 +0000 Received: from mail-tyzapc01on20626.outbound.protection.outlook.com ([2a01:111:f403:2011::626] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1simZv-00000009Yoc-1w4X for linux-arm-kernel@lists.infradead.org; Tue, 27 Aug 2024 03:09:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Qdwl8u/0h2uy8NWPTvkYFt2FHTZv3yM1+ZkLgn/6PlRx+9pCPb4Ng+2HrsyNNdMKw9/4SCjbWadVZKV7NsRP48iTRH/G39E+DNe9Z0oAQZ9bKl4dS0KQZeGeVVEXX9lQwm92wjmN/G+G2Lm8EVEGQnPl40n4BfMRpygP6oLjPVqC0sWe3O6ipOWK7NVGcXaVbOH19GttydYGFryypmR4k4SzoofZUUwxgshZnGP69gaZpgmEbWQU2UcYR06fnT1BlJBqtMIOr85kQVSOwOy2uGyzoqOQQAf9G+ICW14PF5mgwh6BObUiociobYfjVfio2gUkOi1ct7GMLJr9bkdnoQ== 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=IEmNn7lhlbrAfpdudAjAujvAqMEOjI7waIzAHTjPkz4=; b=noUvkMJiTNXtgkEJYflvvbozF7cT9iuoF91QcQBc6JhfTXvf5ociWUauqkNC7M9GHUd7+f41KMtaYk9DpvLhT/WR2m9ErEk0lKGc59BqLPwGi4E5zfAMPssoa5RVkTOC6lRo+GU3T28HuAgA/P8vMH+S3D3gAfGkzmkoqEOax2cBZtureqrp1r043VRg0SwS2FH/gdgf3VDaXtb97v6TtwCGdrNId5y9tf6TEb1AktxuqeuyAeLveCC49RHecNaqL3pFAbgqRviXvqKkTgGKe7iMzj0wF2IfbRjbOrYxSjdzt4/BQ4pqTRNFJteEzTosEM/+CUIhucjrnNsLRR2Ocg== 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=IEmNn7lhlbrAfpdudAjAujvAqMEOjI7waIzAHTjPkz4=; b=MrXgK928tqc8Ieu+A1WTvGRcikNHzxHJehEeqNnH07H1vbb55VR4iwwiz0hDNfZpuIKaU8lOVNhleJTwY08Zm1resNpGR6w8Vf8M7Gy/6z4l92+3jKtb8Qk2UYjx56jn3xZQ+0/otF/pq60K68cv7e12SFCuWzRQDbKCGq0u6gsXnxT1Q3G5D67BvBISB4bCwq20OvwjYe0t3U33a21/ejWpkTypMMM8wx453+Izy8OYj5xRrM4N+Yqp48JDUYJqR7L6TH9g85LZXLLJYzFdVeXC0MgPawWQ/2p7hpNazPoocXX+F+Nea30tMxVBnup1WSXjCuYpaL+aqrybXY/DkA== 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 PUZPR06MB5572.apcprd06.prod.outlook.com (2603:1096:301:e9::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.25; Tue, 27 Aug 2024 03:08:57 +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; Tue, 27 Aug 2024 03:08:57 +0000 From: Wu Bo <bo.wu@vivo.com> To: linux-kernel@vger.kernel.org Cc: Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, Lucas Stach <l.stach@pengutronix.de>, Rob Herring <robh@kernel.org>, Wu Bo <bo.wu@vivo.com>, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 2/2] bus: imx-weim: change to use devm_clk_get_enabled() helper Date: Mon, 26 Aug 2024 21:23:48 -0600 Message-Id: <d781c7fe4b8ffc804de1926893360d4295cd0091.1724728767.git.bo.wu@vivo.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <d0d3877a33db855e232ec4c6911a6937402d501a.1724728767.git.bo.wu@vivo.com> References: <d0d3877a33db855e232ec4c6911a6937402d501a.1724728767.git.bo.wu@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR02CA0032.apcprd02.prod.outlook.com (2603:1096:4:195::12) To PSAPR06MB4486.apcprd06.prod.outlook.com (2603:1096:301:89::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PSAPR06MB4486:EE_|PUZPR06MB5572:EE_ X-MS-Office365-Filtering-Correlation-Id: 1a57f14e-ceb0-47e6-9e46-08dcc6459700 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: JgyFaISCFJZrf/fuOpfR6ModyBH4f69J6+PcKBAdIod6S8ESzKeFTTx3seZawUOrFE8AQ0a0+GDJvQmZmMsHG4eXW15KuGvoYWZzwMxuqOAK81D5pI9Q4JTmVKmoDcFl4alUbmj9hWepRuosEBtZsyo926nfltyBp0yc8ALFCH+0TuzRMUAQWBDs3pxrd3P5bs+RWszEFUc662vcFYLk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/wXmkIDni4JOAdAX2Mx4rZrydFViOoi/hero+4tQE+NHiU3fvINgddi/ZaLvRy4DF/KT2jx0F2gFH3DX/CLB791roR8fH0XsCcE+pMKKUq3t1A3dMUs4nq7kmcw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PSAPR06MB4486.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(52116014)(376014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 4PPG6l+q4Fo5zt5dLAiHWaQnLKMvSzYmYw1ZqIlRl74mCzxfnbnEZEnL1Ws9x5PAuDSIFe1qD6HwY+UGu/ibO4XozOFvLBEqZOkJvt6OHqA+zpW8eGVOjI40C34IjpooYYSePa0Bf4OoyPBi9JtqriF2iMglaVqnb/3SKtrGV8veAw6lbbwzWD3VqSqxPzg1gDgZFnzXnmMAxzcu8p0ITo7vQZCILE6qsn6GNRiDCyGLCZzp5yu8AVpqvL0AYyNLshKzStDwZGrbFH9W65iy2Jd9mDXVe3S3+chiko+I8TsF3KsSBk7e7yEMQy8bP2DerGS4zZHSR2A9pViocrm5JKy7FDESE0Kw3jF+QWupHnmTiyeQCW89vXTaWVw+NjD1iieSCCKp4KUsOX5M8rAEk+3Idg+mUtnSDVVyw6FQVyDN4yMZJbPyS3mO/8bWmQttAY5XRZqzlvevwAeCZjNNzv53pI6qCmfGhViwSlD95gpFQfiQ2iDwox8KpW9LuE6nEDwW1Q039o9ogHZvx5PRROl1opKKP6X3enCaDiT0FA4K01rZCHwLg1bizGlF7tFkIwaPYOY6Xt8dg5YttYuNcYZZFeviIlwhF0n2Twx/KsmHi0div2sXOG42hq/G0G19Kc4ajGXQPIVsnz2LuRVLBD8bSSfQ1euO+g+ssF5Dvk2KHK+Uog24V8vOnkaBzIqfeJ8ymGwpT5gHc+G++mBy5Hzn9+b3bzb71WX227AYIAclRWnmbjEqX38Q1yrwO3yEwV2cr9R/ez9T/O5l2iTFBEZpKC8IrUd2qhIgVt6cyTcvXoy5NfixHI7PmcXgCmCQW+QvvwMkgX5me8roXvo4DNzCr/0n+cAdyNlCYXVMgr8cP8rJkyikr9+ScdqDe1dLFKrAywlyrWQOQuFEXkSfHBvIanPJjfN3L++Wo7JRpcPoFy4RgUhDgGzgEfEFWxJ4tdnbbJRCLs7goV4Pvn/Rz09AFCWFn5YOcNalmhbKoCetzW5WvC4wec8RF6a6BFCUZ6MY7TDQcBZyiEyo5MssgKqw7BZOZMr0tEu1aSDxdRBYo5B5DELzj3QuPqqn6tUp0pd5xfzOvkyXYO3iQG8CwZ7/OBCmmjin4H/QMHwaCrh+Jt7DipxyPpXtVSvgr/6yMLSGIb3nA0AglS4HK9SUZ3J3ltsziFarldxxsojq3UW03iQKutWXcgaYpi50vEAsnx/rB2xSP+w2n8kiSHFVkpxiv32m7QCmyfrf523qVRNY1d80DxKORDsRrvzgcDITXOWfUOC8EkTmQ1l/xX8oknCDbNuB/A+y2NaTGdHBdpfSVxeffKT23WOJXFB3PIBX8puXXzsAF78xcvB9Ns2TwKArhV6KYx1d9HkBfDa9WyOSe1u646cWSqMY3GLKdRNxB9TFlq7eQ2MRlJQIS4+SbHAyX2gxdFRfyCGBseVip+biFAOdz5pgU4jWmKOtAM4UfdL13RU2icV51V3I7FDjHSP3iYkTUb1fV3SLWvWwhFgT6mH1qL0MwSxB2r2+O+c5/sp2XqIjXHe/2DG+C2o3JYYaWg99911ars/40Mny5O84+k041vUg0F0qowlMTSYu X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1a57f14e-ceb0-47e6-9e46-08dcc6459700 X-MS-Exchange-CrossTenant-AuthSource: PSAPR06MB4486.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2024 03:08:57.0056 (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: K619rik75XWuxfKZMPOFk1CBUAB+qDUbprSxeojI9WLQnCHwLfRfa5ppsUocJRLLDia9XElucNJ2NKIkVvWN7w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PUZPR06MB5572 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_200907_528044_217323D6 X-CRM114-Status: GOOD ( 11.86 ) 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 |
[v2,1/2] bus: imx-weim: support compile test
|
expand
|
diff --git a/drivers/bus/imx-weim.c b/drivers/bus/imx-weim.c index 837bf9d51c6e..83d623d97f5f 100644 --- a/drivers/bus/imx-weim.c +++ b/drivers/bus/imx-weim.c @@ -282,22 +282,18 @@ static int weim_probe(struct platform_device *pdev) dev_set_drvdata(&pdev->dev, priv); /* get the clock */ - clk = devm_clk_get(&pdev->dev, NULL); + clk = devm_clk_get_enabled(&pdev->dev, NULL); if (IS_ERR(clk)) return PTR_ERR(clk); - ret = clk_prepare_enable(clk); - if (ret) - return ret; - /* parse the device node */ ret = weim_parse_dt(pdev); if (ret) - clk_disable_unprepare(clk); - else - dev_info(&pdev->dev, "Driver registered.\n"); + return ret; - return ret; + dev_info(&pdev->dev, "Driver registered.\n"); + + return 0; } #if IS_ENABLED(CONFIG_OF_DYNAMIC)
Make the code cleaner and avoid call clk_disable_unprepare() Signed-off-by: Wu Bo <bo.wu@vivo.com> --- drivers/bus/imx-weim.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-)