drivers/rtc/rtc-pxa.c: avoid cpuid checking
authorHaojian Zhuang <haojian.zhuang@marvell.com>
Fri, 22 Feb 2013 00:44:29 +0000 (16:44 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 22 Feb 2013 01:22:27 +0000 (17:22 -0800)
pxa-rtc is widely used in pxa27x/pxa3xx/pxa93x/pxa95x. Checking cpuid in
pxa-rtc driver is unnecessary since we assign on-chip device in soc files.

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-pxa.c

index dbc24e948fe88bfc99c761978fe30fbdb68131ce..03c85ee719a7f46e95b45c0e08d375697c5f396e 100644 (file)
@@ -454,10 +454,7 @@ static struct platform_driver pxa_rtc_driver = {
 
 static int __init pxa_rtc_init(void)
 {
-       if (cpu_is_pxa27x() || cpu_is_pxa3xx())
-               return platform_driver_probe(&pxa_rtc_driver, pxa_rtc_probe);
-
-       return -ENODEV;
+       return platform_driver_probe(&pxa_rtc_driver, pxa_rtc_probe);
 }
 
 static void __exit pxa_rtc_exit(void)