From: Haojian Zhuang Date: Fri, 22 Feb 2013 00:44:29 +0000 (-0800) Subject: drivers/rtc/rtc-pxa.c: avoid cpuid checking X-Git-Tag: v3.9-rc1~114^2~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95fe8347b6ccb68c3bc0082332bffa861160c935;p=platform%2Fkernel%2Flinux-stable.git 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 Cc: Alessandro Zummo Cc: Grant Likely Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/rtc/rtc-pxa.c b/drivers/rtc/rtc-pxa.c index dbc24e9..03c85ee 100644 --- a/drivers/rtc/rtc-pxa.c +++ b/drivers/rtc/rtc-pxa.c @@ -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)