| From 074bd5464b2e05ad5c8ed9ba0442a8abdfd4e2fc Mon Sep 17 00:00:00 2001 |
| From: Sam Shih <sam.shih@mediatek.com> |
| Date: Fri, 2 Jun 2023 13:06:22 +0800 |
| Subject: [PATCH] |
| [adv-feature][999-2500-cpufreq-add-the-missing-platform-driver-unregister.patch] |
| |
| --- |
| drivers/cpufreq/mediatek-cpufreq.c | 1 + |
| 1 file changed, 1 insertion(+) |
| |
| diff --git a/drivers/cpufreq/mediatek-cpufreq.c b/drivers/cpufreq/mediatek-cpufreq.c |
| index 927ebc582..03bb7b58d 100644 |
| --- a/drivers/cpufreq/mediatek-cpufreq.c |
| +++ b/drivers/cpufreq/mediatek-cpufreq.c |
| @@ -573,6 +573,7 @@ static int __init mtk_cpufreq_driver_init(void) |
| pdev = platform_device_register_simple("mtk-cpufreq", -1, NULL, 0); |
| if (IS_ERR(pdev)) { |
| pr_err("failed to register mtk-cpufreq platform device\n"); |
| + platform_driver_unregister(&mtk_cpufreq_platdrv); |
| return PTR_ERR(pdev); |
| } |
| |
| -- |
| 2.34.1 |
| |