mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Cc: Alessandro Zummo <[email protected]> Cc: Grant Likely <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
c8a6046e1e
commit
95fe8347b6
1 changed files with 1 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue