From 8adb7cc006e7dc2e3ce3688a80304cec12e82d7a Mon Sep 17 00:00:00 2001 From: Haojian Zhuang Date: Thu, 7 Feb 2013 12:27:45 +1100 Subject: [PATCH] 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 --- drivers/rtc/rtc-pxa.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/rtc/rtc-pxa.c b/drivers/rtc/rtc-pxa.c index 928b4b5432fe..b7e462978609 100644 --- a/drivers/rtc/rtc-pxa.c +++ b/drivers/rtc/rtc-pxa.c @@ -504,10 +504,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) -- 2.39.5