blob: fdf953d7bcb2ac49ac597f0fc048e6d6d50b799c [file] [log] [blame]
developer2cdaeb12022-10-04 20:25:05 +08001diff --git a/drivers/cpufreq/mediatek-cpufreq.c b/drivers/cpufreq/mediatek-cpufreq.c
2index 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