From patchwork Tue Aug 27 03:23:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wu Bo X-Patchwork-Id: 13778792 Return-Path: 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 07D61C5321D for ; Tue, 27 Aug 2024 03:10:07 +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=1EHUn24YG36cLVjG5O/14gIB0agEy14wH49NLOISuHQ=; b=E0FpJM6EJPcLMxXsntN3jiGz83 qpdmISRh3PvzCQo0xAI4y7wYolQVuU8GjX3kkYYTqD3IJ0ZNPHbturGzzGtYu8MtA60cg6FfiDSoI 2Gz51/Wzmbb4OVrEsCiZCpPzWXYVmG6TW8EH23QaUlxcCLfOYfveRihmfKWofissejH/BYsJzG0S1 KsYidrK7ol0YhIK6pqwxaBE5hT6LkdYObXDej2aXbMl+f84m3F3ERKg+CbxO9ARwWMLx8kH+/ly0f CmiWkbCSsSbNPtTBBMYG0ahYmc7Gy59oVQWisL7iWIiOY9D7BVeY6YwxgSr2qf9rIdjCc6fHBBdDp W5pUAp+Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1simaf-00000009Yvp-2ufK; Tue, 27 Aug 2024 03:09:53 +0000 Received: from mail-sgaapc01on2061e.outbound.protection.outlook.com ([2a01:111:f400:feab::61e] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1simZs-00000009Ymt-3aFA for linux-arm-kernel@lists.infradead.org; Tue, 27 Aug 2024 03:09:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=o6n93Ixg1jsoZId08eL8CAvFYt9lLii3IibxfE5zfeeDyqsYTsRP/3Xn8bCHiirGhsCMJQyOIp9RDHFNI/Y1ujHfsEo16Z3q1koartGtoZsPqlqO/vlJIFRkDT7NhaQBwr4z+7OZPJQVb4nQXtDV5PFulAuvFfh0RHVvCG8k9oR3Z0EYklvkzN1w6xEOz12ivzCUPsvNDqaSlEaTFHmL+mvz1X3w6R1k6wicEZuCSk/v+CkY60q6x0Ne+ULhEjs2qDqLpe7rfLHYCGWNvLLrnLoi47zmHbY/m3ltbj7zEaES+FvMi99i86wUm7z/tgdZ4zZR1SInvC4Ant1VRXuSnw== 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=1EHUn24YG36cLVjG5O/14gIB0agEy14wH49NLOISuHQ=; b=q5NKFLIllJvY7sTAhhvOkT3jay2ppzLtZZSK6E92JS9arJxnXEB9gVPL6CJ3w2wLqTSzf/CwU/m4tKUhAuUlKnGZ19Veh5USg+5xKJERJfJCdF9LHIwTTjF+eL128zhfLlIw6jsLtcELla1iCF1xok4UsCfiFrQ4BmmdoUMPzm9pN5Ygy3Wux4ALdJvej0MtS7SbUKDZObBhP4woB89hrJ0U1llvFLKd69tgi3W34/fkPXuJDp0CCXB/h2DjxlTlZhMFIlZt0r1WkRKhoIG7Dls1o8ICPlxrE3RhormmBaqueBcRTMbG0yAEtTYPJYQbe+ob98pji4DYSbRuFi3tfA== 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=1EHUn24YG36cLVjG5O/14gIB0agEy14wH49NLOISuHQ=; b=i/7zrNCdi5tvhOE6a7kY2AlPPqfAUsBPe7gTr+Bml+YVfK5DBL+gZs5WLrUwpc+ERupLtg/rp/JuAoqLnEz7n8ZAVbHVJ+riHlRMYV0XnyBw52klgpp6cpg9iY3ZosuET5R5jcoZJER+aWBIALPdBvuG5sv/Wx0vDlBOG8SKQF+JbTTHJPiuAmlqUuQ4gHPf2Ta0wisl85R8A0h7sxEpWWt6SsOAUrlQyhVfvmdU/QWL+CSxxGxCJHqklN7tLxb3Kr3KuPoDF1GcWbp84fKUxa2ZoeA45JUJngyiyraKC14Dg2XbvAgRD2rE11WjgItrUSz69/k8wIxrpvWmAdMXqw== 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 KL1PR0601MB5512.apcprd06.prod.outlook.com (2603:1096:820:bc::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:47 +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:47 +0000 From: Wu Bo To: linux-kernel@vger.kernel.org Cc: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Lucas Stach , Rob Herring , Wu Bo , imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 1/2] bus: imx-weim: support compile test Date: Mon, 26 Aug 2024 21:23:47 -0600 Message-Id: X-Mailer: git-send-email 2.25.1 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_|KL1PR0601MB5512:EE_ X-MS-Office365-Filtering-Correlation-Id: 04f0fcf7-ebe4-4f04-0e06-08dcc645911f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: 1fMsb1k1lcvBC+wo0vraUz9OSKtuubDZueKFveGzEMjSAT9l0uEeof55Wm26oAYjUKdyERexdjtgxxj6++SsOqBmFKVkbuJm3Ql1UFT6V8xr1hSSOru8gcHl3A5YehhgY+KFNlrvkziiaRkRjPKbAtu72St1TsBWnFgdrBTL0Xvx7deXOLqm4IS+JlOjvbdDFiVcfWZCUrdMoQKquKAe6pye745Ozo6U0pwo/p2Z07mtlY1Ro7tzILzpFSyafu4ch+ygHoYvHPV9BlqJ3+TkFdd4wcn3kBPcDR+++HZq8uT43X/OkdrRwKhjbJVWv3YilOXc+uyEN8SmWL/9Byw6knQtrTPVKXD9HR+KedRgEVHH5Awm8OyK+yXeBAYjNfqHF3lFpIzEFktK1L4zxbu9ImDya1Q63i76ChE3SfiGS5lRr0CqxHXhjU4rCer7pup39NrlevB/5YLGx3tPU6TqIaHxc4spT5vwAKuR0WqSfGF8ewWVGwOoDxXHbpXG+cgtceNFFJq/0qMDOETmJ6O81siB7BB/cEw+PemW3dHZA0IgwjsYtS51VV4I7c4PeEREk4qbIiOuAcFwTakKeejy48E06K/JoSgHVKoEhsExK8f/F0cCbq19tot2fmylE4OQFui3FH4jVwjL7XTzqyFyr4Q7DX0nih7vewaPpoBLufHcrfdccXTHsPHJMM2o0/xgZ7CNdWIB2I902BTA5OrZaQhoOuNqpHVt4omAujSk9cMen0Q4OTG95TTjDKIwte2ZnZ541ne+G9KykWrZQkM2MlsxQF4OlBfjGRVmBKkGqNhFG2h+DUFdwSYov6qPuc1y+i3QGTde2lC0eMsikva2W9BdiYmEEo/7A39P4iuxsLq1iuo6m60T3D4byFAvpw28UwjhsJ78weImNMt91cfPST3ABpZaGVhndeF/J6qhgiJu6r3HHTHRkFW/hYVKPahsn9fTP1chaZOoUt0cPo3hWX6RNOzxAa6xJi8KnUWuT+PYedSM+PLZg/FWqkfSzDNzZimAi4mBJyB48GNxS1lq836XU1jxMT0EQIIF7DfbgwRhg9dTwuKfnObgBQ+qsbJJVl1+SmTnForZUkONYS7YmW7h8RYKJBjDwWJrI1bsd3SlpXtuigA9TfIhwAMuadNS3eXLQRUBaBL36beqXah9AOOHfe3QeizO9MIkkDIYeL2FS0mDT1jeGwmLihbPyv+1v4aurPsAX5Ireq/Ocqj/L3mTjragfJU0PDJk9UDuNSoTpIYCcxJWs+7PxhwuLp5/e00JNb4/ek/fn4D0yUsDrhJNYpLVr7z/mtbprccxQgnwaz0TT3ZH+dOwGRB5RmyrPUv6dSvhHPX92goHeWKucOfD2Jv8Pdnaxg8jM7iGK8SVYt825+nhtkfvIS2UDFnhdu33O7dip53GGR2SbywkwQ== 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)(52116014)(376014)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X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67e/YHBq2CSAXIrXJZl/QsQgJBQw389zNgIJZMuAyXjd+dYJNFRtIQZs65p/1waEjGB3wIJrsrnT1KvRYHslXfdz9SRdh2UnBOEmS3qMcioDitA+UILPoUQN2sHJnxCtDbfYORbibYtaMzAtpvAZjgP9znLu4hbKvAx4oMsJ6+lNEi9cNcR5HrEGGcjt0mLkHz7AaRLquRAobYc/JcqRjMg91vasjBR7A2LJzAbCOaqcDDB+llMO177Now9qBPWNOH9e+wXqgMW51HYeNF1/qKGktf27bhWHSYfkZ5LVN72sfdwTZa0TIFVws+pqj1S4lAo1Ydkwfqj8v5VESyOAXYfMdRZYUg6KDGVGnNlV4XNbFx+jLhziPd/Dm0mg4EnvoQL5iz84/jUkQDQbKKgOgALGFbJO3OPSYGM2NSxObgqbvU7DdN5zaatk47CLBh4GXphVQmBK0DIRYC3ayMVHTu76eIhSg7AQDr5JeTZ3bg4dNcL/os1G2k8JVecwnR+NjCkqN4XfoeABysTnYNWJVCPrWh16Uvpwf X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 04f0fcf7-ebe4-4f04-0e06-08dcc645911f 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:47.1914 (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: 7XRBwYKkEJK2mBcFciPpMBG1QEsTmvMIot++8KNIBmLRqpxDFO4y/1VOyIK2H6FAuHNeUJ0KeyLJVc1IVYTrvA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB5512 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_200904_902512_66400EA5 X-CRM114-Status: GOOD ( 10.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add COMPILE_TEST to support code compile test Signed-off-by: Wu Bo --- drivers/bus/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/Kconfig b/drivers/bus/Kconfig index 64cd2ee03aa3..ff669a8ccad9 100644 --- a/drivers/bus/Kconfig +++ b/drivers/bus/Kconfig @@ -89,7 +89,7 @@ config HISILICON_LPC config IMX_WEIM bool "Freescale EIM DRIVER" - depends on ARCH_MXC + depends on ARCH_MXC || COMPILE_TEST help Driver for i.MX WEIM controller. The WEIM(Wireless External Interface Module) works like a bus. From patchwork Tue Aug 27 03:23:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wu Bo X-Patchwork-Id: 13778793 Return-Path: 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 ; 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 To: linux-kernel@vger.kernel.org Cc: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Lucas Stach , Rob Herring , Wu Bo , 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: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: 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: JgyFaISCF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JB8yjVKuLtFIcDjA9A69v8WgZKlFi2bSOkd1wx0S4iC1dLGSe7ReV9Wa+LIzSNzqs27p4IpEE1FMIFmaQiAhmuVtm4fPS0uvq1ME9aAnr+loK1zYIkKecHxZN0iWCjAd1WvS59ZF0YbbybCrFsM/lGWG5up6okNHODlpGiRuFD3500U/VOS/Mc2BiMclcy3zn6ZPA/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/8bWmQttAY5XRZqzlvevwAeCZjNNzv53pI6qCmfGhViwSlD95gpFQfiQ2iDwox8KpW9LuE6nEDwW1Q039o9ogHZ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atorOrg: 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Make the code cleaner and avoid call clk_disable_unprepare() Signed-off-by: Wu Bo --- drivers/bus/imx-weim.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) 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)