From 59a7266118ac48937209f21240a6818598102350 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Thu, 20 Feb 2014 14:28:36 +0800 Subject: [PATCH] ARM: rockchip: rk3188-cpufreq only avaliable on rk3188 --- arch/arm/mach-rockchip/rk3188-cpufreq.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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); - -- 2.34.1