aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-pxa.c
diff options
context:
space:
mode:
authorHaojian Zhuang <haojian.zhuang@marvell.com>2013-02-21 19:44:29 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-21 20:22:27 -0500
commit95fe8347b6ccb68c3bc0082332bffa861160c935 (patch)
treed9460fd2a0b51f061b6d6d37eacc9e89a3e10771 /drivers/rtc/rtc-pxa.c
parentc8a6046e1e0bb03406e4fc6c0a204ef58a1868e4 (diff)
drivers/rtc/rtc-pxa.c: avoid cpuid checking
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>
Diffstat (limited to 'drivers/rtc/rtc-pxa.c')
-rw-r--r--drivers/rtc/rtc-pxa.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/rtc/rtc-pxa.c b/drivers/rtc/rtc-pxa.c
index dbc24e948fe8..03c85ee719a7 100644
--- a/drivers/rtc/rtc-pxa.c
+++ b/drivers/rtc/rtc-pxa.c
@@ -454,10 +454,7 @@ static struct platform_driver pxa_rtc_driver = {
454 454
455static int __init pxa_rtc_init(void) 455static int __init pxa_rtc_init(void)
456{ 456{
457 if (cpu_is_pxa27x() || cpu_is_pxa3xx()) 457 return platform_driver_probe(&pxa_rtc_driver, pxa_rtc_probe);
458 return platform_driver_probe(&pxa_rtc_driver, pxa_rtc_probe);
459
460 return -ENODEV;
461} 458}
462 459
463static void __exit pxa_rtc_exit(void) 460static void __exit pxa_rtc_exit(void)