From patchwork Fri Aug 23 10:22:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wu Bo X-Patchwork-Id: 13774875 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2075.outbound.protection.outlook.com [40.107.215.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 45D8615FA7B for ; Fri, 23 Aug 2024 10:07:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.215.75 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724407637; cv=fail; b=UmPU6KtQXbdBNKluAnzEMJo5bET31OaSmPBwxquk8B+PuAjDxrEYTx61icSCVpKqeh2k/21lO6XUH8fArjrQXXMCnPHN3/65hQEq4nIXJfjevr4AmXYbS2kN1ozaTrkvERwGXY/4SaQ4ThHwG+HFzODtgjHnTct1z/Tl2zNlHUk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724407637; c=relaxed/simple; bh=ejI8B1Tu52m8uhSqvYDQFQXtjbhlUVqcJQv7eGKizlM=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=Hf68eCE8H98X/8smzlBp0Gms2ND88k7l+ZyJSuo6C6CFfeeCtRuo/QPEdlp6p1sUU7k6APRo57zZvGp0hmRZn7ynIUVPYIRNQnwlZ0EtyFtsY48XxfybGkLbknqZVdDEeHvgy+VJBd6b/lmHhbFp0a5/ChjN6vbZfZ74+tqkPL0= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vivo.com; spf=pass smtp.mailfrom=vivo.com; dkim=pass (2048-bit key) header.d=vivo.com header.i=@vivo.com header.b=fAEg2xCK; arc=fail smtp.client-ip=40.107.215.75 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vivo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=vivo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=vivo.com header.i=@vivo.com header.b="fAEg2xCK" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MN/lXssxAadKFNttY6ar4OVEDLbSGHwhYahKmQR607UTezeEGDpXgXv0eurXg8hhVvoJhWpKVj2SbK4votteqx2VcAyFgpGfZyDDt5JTXODlcpu7etgcNL5YHJKzprSzv4oRqu9g0NnKjylBmvJL7mkZdQusKwMzz+LxqS3Xv9MUYOP0RhBZ+1p/12JoUyoSJiM4BoIDa+/d7fa8NM9EJUO98IsUYESE8+KTHb9+Au+/9uBsHb15YHJrVDhpYnc9X+5F8GOfQ04Z3nyp8P6DPzwjus3NDtTeszcYBSRzQqL8TY2mEF9NfxvOh16jrvvxWvYYpzGYp+gRWMU1oo0qcA== 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=GwfTGKbUDZbUVuZCcUY3EmQ9EnckJaOLTTHz7CjBhB2Y2k9nlmIkGEfxkbwQkYv4O5HYA9ktuykFcXyx9AhCbr7oRIxFJZy5k2+9pGjTaHVOh8szttHJTM/zKFfGIhZ5rLRg/4flCgQWx+k3qLiye5wPIw0nHNNIFNeRDVO25aa7vlQZIWucgoogD0xecTEHxsllTZ0JuDZRZnUtG4W1T4N3EoCHX0DOgzKu1wVKFi+uMW7OIis7azRgKbkWlsjGPKi5Q7lLa+4Jg4+V2fc5SeEeiQbxL6olZOxXIET6sSkhke532IkH25/fqExYQXHp1bt0c+/E7us/ZUJ7D3o8PQ== 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=fAEg2xCKybCskWsdnBftw4FzMtDGvlRTxYDfAimssnp3DHKDTYT03yILP2GXvdCtkEws0R0LekO9+7Fb3LrG4nX1Uc0RwObXPaqGlt3Wkhct1tG2Rq4NXKC/OdRtfu+P+s6FFvucZQNL+qq7OBtklnWY6X9FMu0DDHADsAZQJf+4jhpnLT+wHAnlSMtJD9ROl00m4GQcyUqYpON9Dn2QBXdHORyUsZ9KwV6xQDQ+3NNvvbiK9O1eLmbrP7MVlTmoZRaTNATGvc2TP0A3sCLHAL4ZfIknpEjImTDUNqwStxQSUsZTOS09XpRisP+w8Zfo1PaDwbvDgnIPzSKRNMzSYQ== 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 SEZPR06MB7176.apcprd06.prod.outlook.com (2603:1096:101:225::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.17; Fri, 23 Aug 2024 10:07:11 +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; Fri, 23 Aug 2024 10:07:11 +0000 From: Wu Bo To: linux-kernel@vger.kernel.org Cc: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Wu Bo Subject: [PATCH 1/2] bus: imx-weim: support compile test Date: Fri, 23 Aug 2024 04:22:10 -0600 Message-Id: <6afc96fc30403966d9be783c659b422186000a86.1724408198.git.bo.wu@vivo.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: SI1PR02CA0022.apcprd02.prod.outlook.com (2603:1096:4:1f4::16) To PSAPR06MB4486.apcprd06.prod.outlook.com (2603:1096:301:89::11) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PSAPR06MB4486:EE_|SEZPR06MB7176:EE_ X-MS-Office365-Filtering-Correlation-Id: 7f142688-c93e-420a-3920-08dcc35b5afe 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: ijweLMkDK3qsll3oRPq3C+JlpUY8LHS6jFLmpvRq+kh1aP6Lldng28bSUGZ3pFqdGHE59H57JZ4Nt3x2SrpdBdVZ+cOz+hOFIdxqrNxlefvTyjBYDNjYxBC/rqFn6PScM1BWqMWDBfUEFB4AhOFeyTZe7TuHiSLtfMMAqSigjLI4kOAlT/IDVobIf2YDl+2YglQLtcKJvMUVvYiEaz4W8J5yTwsExTj09RIjh6lILZXm6NL/GJeuwuY0IA/TgeL4WIHciipwLOG3nC6dF/O63U81rwpKY2eAv8nIfKBMM96NwcApJJNE///Vonxn5BSacF2LhIfdf6ub+Tuija0ZFWTxS2RtrRLdBVF2wSu+VwLF6e9c+F1ozHf5tu2ZS6Df5v+yPmP8BgbdPHlAr8kJEKLYN0lKoRYFqkVK+l3j+3v4Xu8OREhtNpE3fW1a7cSh4B6KOck7LfGwKjoAuqQgZ7jyU3b3kCTJ9LYCEji0nCmQpwqAueh6BijnIbCcrdjWDE5cL8R4UHcLzwRZ2awX28z3TYOhMGaCog4oQSw3X5W7tEfz5VNFq9+Yn0u7fM4JbFAJ0IFzfyUfLBNfeQ/eSL6K54U8geD7RCq/ddqsCSCKMClK57BpISw1jZ7FyqL+DXsQv9Nio9a6FJEoho1mQTcrMZQsowZv720cyYW2+oht3o7klahG+TdGRuKkqICo39rwPPTr+nZ7kGzDctCdU61aLZP1p20gCyoglBcL50MycNUUnwvbnkhnH5YArTGsenbnMdy3Ffuk1JvI4C8ODinlm7imzVLdRRfQedldKcHSBSp9HWFSAhF+HIgE7p0phtRpxWR/NSYT9siJC2Ls9A4CQenbYiQT0e4sCV5669myPLjrl7o5MUtJOBSBvZ2WA9U96C3aqxN/sw6WbXnTWD/v6ANb29o3YWuxaLwhz8LuNsj2GN1nhzanzAO0KHSixCGtjWIgZyw8Z8T4sfVvPSsxaUJsXbNchM/88NkSOqbg7tBhaIBsCcIXUQAApB3fapTEvQNr1Es3JT2DeQ0NAbWkD4URxNo5GfHPtXZPu2k8pAOFZcePRZSpzx6UneYsoteitinYtLnOE2k+7qSwTwj2pgka2Kr1WsTZfAGIKpakdoLMP0H1k82LvPNmA6sLOoaiFg17r+O2VI7ppGSFT0zN+0xn0mqPxIpOaRw+nEEoEzOswTefSNENhSKhZTFW6wvp+iz0i5MjwFhok6VFvgeIECpareeSHY/q3uP5N81bqqPJ+U/KNZ+QIfjqtIJnqHJa9AVIGDA5r+G3S0V54nyLH2l1HitZ/X4B2wloN0FFaYP5/1e8+LBKepg9sPQdrZirf9fcqWcHEICaaRyee7xYGBQK3cLqwkv1b1XxYQtPAWVJySS60MexFJXK/znrF3RIiqKltNqwITco5IDJeA== 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)(1800799024)(366016)(376014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-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gem3RVrrRecrPAyqXQZxE5JKNZ1i86PjnOtLOCuRB81Wle5ovYNb81yLb1h0o7i25TvPK0fHQtATNe+aqyxHQ+KrVf2f7YhSr0+M9v0KwBvLZ2TRo2hSXRISbwJTX6NXcoV5/SKaIrbHhmDKUxziiF2j7YiXLTNKsbWeSHZxaFQ4n8GrzHT+rsWmRgVIReSi3nH51xzE/v/Fwy25YRAnnz2jboT0D5F3a5h7eo5UIQZLfb8xK9xG6hbCEkI0wIWPG+uLuGO/gc739BA/oCQsZubwX5Qh2AqsjB349/ZmVYMl8U/w+mV2gamAAxrVWc1rLX+39811yl9rdDhZX09zhNcZIuduOkrLZom42GYqMMRk37mfZShB8+TkplQHH4ko7j/yd9M3oY1IBMeOan63e66qR+OUJUVW5WFMJuL4UZhjzujRPWLdxnj19v6KKqh1YS0nYjUhu68KlEuCsXZFPNPYN+h+kKhia2UfNF3z15+YL8/C71zrDAEIiMuTYu0lguzoYHMx4znrhdgqdG0mDfpC9+vx5OKcvQHOMETQzK2p X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7f142688-c93e-420a-3920-08dcc35b5afe X-MS-Exchange-CrossTenant-AuthSource: PSAPR06MB4486.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Aug 2024 10:07:11.8516 (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: wkTJpDmaNEWxPHzQGJPfOQoq4CDrRKc7czkHf0/Ibb1XBsFRlL/bYzhcCCkct20pBUTLAOju0+O4xASq2l0Pgg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB7176 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 Fri Aug 23 10:22:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wu Bo X-Patchwork-Id: 13774876 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2043.outbound.protection.outlook.com [40.107.255.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5699D14D718 for ; Fri, 23 Aug 2024 10:07:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.255.43 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724407647; cv=fail; b=H7HKEfJbDBiIWiWvZlDnUeLmgj3uXsWR+b88DR2qR2M7XKUPAgx2WjpWKcvjdYUUCNML8ce1cYjB6EYPBLF/wl5lFAqV0ZWrnYX3o3vrmxGHG/+/b8wAKG6Q78l41QqYgRFAPOAmj31Aoykt0ipB8jNIXubXANYyiE3FCsZTO3A= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724407647; c=relaxed/simple; bh=4PfRyMmKG+mPeQdDstye/hc3bL88gD4jHhXsTnqjEO4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=asvx0aLxVQ8Jay72Yf0q6gFUnGC3n8CX4SjTabVfmESJNS+KcOiya9JK0UfIGXRiuoa1yclmYOMlMnElqpSRuIhdkDId9lmAiwOZbEDw5m19aJK5gZJm+W7iIcpQ+fc2nZZk58/MKDLQFCLbQNjb/9xnNWH7wXaxVSshL3DsrfE= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vivo.com; spf=pass smtp.mailfrom=vivo.com; dkim=pass (2048-bit key) header.d=vivo.com header.i=@vivo.com header.b=ETjU1/u7; arc=fail smtp.client-ip=40.107.255.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vivo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=vivo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=vivo.com header.i=@vivo.com header.b="ETjU1/u7" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZM2y24Dto+i3ofkwWItDaAkYgTqNpKHMOpaMdU+qG4JpgiSdoE1ZENqxNK0RO16p4Sgn0Plz3bi4casEnT8LZZIGdHCX8n5VqEBCwwDviCVvM7cV+cmbGJsh2MlI6hBKs7kHtrnC1tBI44yzbfici3dYPiRrstaQ4MgYmGJAROIeFNTd2GgBrbfPP/bJP70wyGveb3aV6NmC5ZQTP4Nsxmk4PB1H0Hi8jkb0QnXTewJbgAEIx9noD3jntqjESLUi8k8e1Zs2YnqTVwrg2Mn/OsxhAA7IikxMzVga1S9x39Nv44SeFoWPtXyR5GLSh0CTqXOJI4gW+QIZCRBJ6m1b2A== 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=JBvWYkQXqq4/BmGVStz9xprVOkVflEx7dUpoGC3yRhY=; b=rL+epGlmVaoelk8g8/UxeyT08rn/H9jNWcDFkolGBUskuv66a48ET+0WwaoINUBNSRKqJ1j+UPS1oC5CvXD7WyeP7L7qX2ZzofSTtNmyKkqRsJA639+i3WzhHh4ZQ9+YWjnJ/6z2yLOud7Uo1Okk3NfTPxbiiSRWKMVCly+tP0oQbBEiOHnnRxkW8hwCAxEps0ba1Obao1zE3hSzka+ejUAch5/OClQ9uctFHSlnXGjF1LBcHxXp312W1mWMVLqR/1HuIyOjLvpJgLF+vyPrkH11WBoQAIngZ6uJ8yv89BUop9C3xnT4Hnp0HEZNJVnwDZngjb/JNWBqGXtfRKsIiw== 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=JBvWYkQXqq4/BmGVStz9xprVOkVflEx7dUpoGC3yRhY=; b=ETjU1/u7IVj92wwbe3YGrVZu+ikCjiVsyeTsojBTQM2XfPdmkh9aqUN5mv5DY3k5lQsQvq+vj/adID6Cmo/bjtkGqAAynnjhzCTiLikr18rZULAjkRa9K8u8FdiF/QCiSpHPSe6XAe3KD+J21vY3GZP7m6f/OVldN/2S+Zzqr0nGLUPWLMyPfO0C0cIyqjwWVAutgZ7aJuVamJ6b4/265f2IlbHFFc/5Wznu0TRgSTB2fDgV8sMA+dSiTJUVdI3RX/Wevn7GYSvQU1Qc/LUpiDWtkRJVBOPLadSylsH7UdQ6vqTHKWkqR0hxDIKqGWfpYp2z2C2bj6cUh2ma9ZTpdw== 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 TY0PR06MB6854.apcprd06.prod.outlook.com (2603:1096:405:10::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.20; Fri, 23 Aug 2024 10:07:20 +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; Fri, 23 Aug 2024 10:07:20 +0000 From: Wu Bo To: linux-kernel@vger.kernel.org Cc: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Wu Bo Subject: [PATCH 2/2] bus: imx-weim: change to use devm_clk_get_enabled() helpers Date: Fri, 23 Aug 2024 04:22:11 -0600 Message-Id: <9bcf916828934b497ea13d27405105159aef1bff.1724408198.git.bo.wu@vivo.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <6afc96fc30403966d9be783c659b422186000a86.1724408198.git.bo.wu@vivo.com> References: <6afc96fc30403966d9be783c659b422186000a86.1724408198.git.bo.wu@vivo.com> X-ClientProxiedBy: SI1PR02CA0022.apcprd02.prod.outlook.com (2603:1096:4:1f4::16) To PSAPR06MB4486.apcprd06.prod.outlook.com (2603:1096:301:89::11) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PSAPR06MB4486:EE_|TY0PR06MB6854:EE_ X-MS-Office365-Filtering-Correlation-Id: dd7d596c-713a-4dc3-0ba2-08dcc35b5fe1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: 1+RC4tZ/EEWgcch3KRaeX80YsTReF61gfFo/ctIsC6LAinYpnXiWFl8iUpUpidW+03mYTW5yFoBv52eFtI+db77GFCPLyB4PFQXFHChYNH2eY9jpSIVtReqtdPqpxo0ubF8F5qX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A5EIKHY0B0jMfMbJNQ1IE8QrfnkiUoh2e380ddetyNtt1GHiffUunagx5evFYMSec1ApvJVWz/jxhVPE5VJgOyzg/e222dEpQC16Cb4Z/ESKlliWKQYEv2MFsCyqcOqf1ZKpGQjANwVB0Hx5rziStJfJVel+yRyGOdHYjz6QrMV7m2Q/mMeFhkycL+yx4uLPrgWzj01MYs5jan2h9ZpwleF90UCBunQ== 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)(1800799024)(376014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GEKc/l1S22FdOuGv2AaCAwx7LjL0eofVD2KYTFix3ZnzW6vLMMn6floC4ElPpDjuk2hY0JFIrIcZB6u4ZWhBijy6xtL0hOLRlkQaWBZL9POY17w8H0dOhRQiJfQiAdEkCMzBthAgBy3CcAuSmFme0AysUPTfMgraYYKMr1Vab6tviI1F0bz0GW1cwkXqoWrbALLPn9qHsPISfg1cCTiF7s4QzgTd6RPxZVZlyz6LiSrLeCZikFpLqk9chMIuHKfOZGmCMNev1mMrWPEtYeNHZpfsH6KN8pPAtMSCibKoiZ/nSPnGAD1jnQjoGO8vwOyM7Y6w0Q3L8M3CUf8aMMQst+eHuUI99ceSMSpI05SxvENexIdfN5Hi+QoaFr8ZVM53bB9HQhnIavUE2TqheitvIRgIRUjKSrguPqztLUzKCYi6rjBTtai1FtlBgor7oEe8yBDXB7rajKsj1yhYzKYuNNnYJuq5SD/OUIxsQV7IeX0uky4l9FW5osNEbF2mFMKGL/hLxTWz0wff4jj7C+aLhToN1CEZekxaomb0+a1lgmXvUyWBUncMUV0hETvzggYpeCjbkA/s8WL518RMSu80U0cpmQ+JFbcdHdAMyo+PtpS6srSzGYUfA6qsIndqIq3U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.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Aug 2024 10:07:19.9845 (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: UoVjWMWCclLgW49SmEcP/oGBpA1dn2kATjP+5jHUPv8MmuxCLIfco+xpY2SPXhxiTmcuWA5LpAyjIIvy+PFk+g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB6854 Make the code cleaner and avoid call clk_disable_unprepare() Signed-off-by: Wu Bo --- drivers/bus/imx-weim.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/bus/imx-weim.c b/drivers/bus/imx-weim.c index 837bf9d51c6e..81483461b514 100644 --- a/drivers/bus/imx-weim.c +++ b/drivers/bus/imx-weim.c @@ -282,19 +282,13 @@ 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 + if (!ret) dev_info(&pdev->dev, "Driver registered.\n"); return ret;