developer | 2cdaeb1 | 2022-10-04 20:25:05 +0800 | [diff] [blame] | 1 | diff --git a/drivers/cpufreq/mediatek-cpufreq.c b/drivers/cpufreq/mediatek-cpufreq.c |
| 2 | index 927ebc5..03bb7b5 100644 |
| 3 | --- a/drivers/cpufreq/mediatek-cpufreq.c |
| 4 | +++ b/drivers/cpufreq/mediatek-cpufreq.c |
| 5 | @@ -573,6 +573,7 @@ static int __init mtk_cpufreq_driver_init(void) |
| 6 | pdev = platform_device_register_simple("mtk-cpufreq", -1, NULL, 0); |
| 7 | if (IS_ERR(pdev)) { |
| 8 | pr_err("failed to register mtk-cpufreq platform device\n"); |
| 9 | + platform_driver_unregister(&mtk_cpufreq_platdrv); |
| 10 | return PTR_ERR(pdev); |
| 11 | } |
| 12 | |