blob: b03956f7e78532e2b82aae0a9c2c9af825b83640 [file] [log] [blame]
developer5d148cb2023-06-02 13:08:11 +08001From 074bd5464b2e05ad5c8ed9ba0442a8abdfd4e2fc Mon Sep 17 00:00:00 2001
2From: Sam Shih <sam.shih@mediatek.com>
3Date: Fri, 2 Jun 2023 13:06:22 +0800
4Subject: [PATCH]
5 [adv-feature][999-2500-cpufreq-add-the-missing-platform-driver-unregister.patch]
6
7---
8 drivers/cpufreq/mediatek-cpufreq.c | 1 +
9 1 file changed, 1 insertion(+)
10
11diff --git a/drivers/cpufreq/mediatek-cpufreq.c b/drivers/cpufreq/mediatek-cpufreq.c
12index 927ebc582..03bb7b58d 100644
13--- a/drivers/cpufreq/mediatek-cpufreq.c
14+++ b/drivers/cpufreq/mediatek-cpufreq.c
15@@ -573,6 +573,7 @@ static int __init mtk_cpufreq_driver_init(void)
16 pdev = platform_device_register_simple("mtk-cpufreq", -1, NULL, 0);
17 if (IS_ERR(pdev)) {
18 pr_err("failed to register mtk-cpufreq platform device\n");
19+ platform_driver_unregister(&mtk_cpufreq_platdrv);
20 return PTR_ERR(pdev);
21 }
22
23--
242.34.1
25