developer | 5d148cb | 2023-06-02 13:08:11 +0800 | [diff] [blame] | 1 | From 074bd5464b2e05ad5c8ed9ba0442a8abdfd4e2fc Mon Sep 17 00:00:00 2001 |
| 2 | From: Sam Shih <sam.shih@mediatek.com> |
| 3 | Date: Fri, 2 Jun 2023 13:06:22 +0800 |
| 4 | Subject: [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 | |
| 11 | diff --git a/drivers/cpufreq/mediatek-cpufreq.c b/drivers/cpufreq/mediatek-cpufreq.c |
| 12 | index 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 | -- |
| 24 | 2.34.1 |
| 25 | |