From: 黄涛 Date: Thu, 20 Feb 2014 06:28:36 +0000 (+0800) Subject: ARM: rockchip: rk3188-cpufreq only avaliable on rk3188 X-Git-Tag: firefly_0821_release~6311 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=59a7266118ac48937209f21240a6818598102350;p=firefly-linux-kernel-4.4.55.git ARM: rockchip: rk3188-cpufreq only avaliable on rk3188 --- diff --git a/arch/arm/mach-rockchip/rk3188-cpufreq.c b/arch/arm/mach-rockchip/rk3188-cpufreq.c index a32c543feaf0..08b8efe5c1ac 100644 --- a/arch/arm/mach-rockchip/rk3188-cpufreq.c +++ b/arch/arm/mach-rockchip/rk3188-cpufreq.c @@ -707,17 +707,12 @@ static struct cpufreq_driver rk3188_cpufreq_driver = { }; static int __init rk3188_cpufreq_driver_init(void) -{ +{ + if (!cpu_is_rk3188()) + return 0; register_pm_notifier(&rk3188_cpufreq_pm_notifier); register_reboot_notifier(&rk3188_cpufreq_reboot_notifier); return cpufreq_register_driver(&rk3188_cpufreq_driver); } -static void __exit rk3188_cpufreq_driver_exit(void) -{ - cpufreq_unregister_driver(&rk3188_cpufreq_driver); -} - device_initcall(rk3188_cpufreq_driver_init); -module_exit(rk3188_cpufreq_driver_exit); -