Skip to contentSkip to conversation

rtc: avoid cpuid checking in pxa-rtc

PATCH New Jett.Zhou 1 participant 1 message Aug 16, 2012 Real time clock (RTC)

lore
Share & tools
lore

Jett.Zhou

author
#0 lore raw

PATCH 1/3 rtc: avoid cpuid checking in pxa-rtc

From: Haojian Zhuang <[email protected]>

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.

---
 drivers/rtc/rtc-pxa.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
drivers/rtc/rtc-pxa.c +1 -4
index 0075c8f..a2c3534 100644
@@ -433,10 +433,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)
Signature · 1 line
1.7.0.4