Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: IP32: Add platform device for CMOS RTC; remove dead code

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Thomas Bogendoerfer and committed by
Ralf Baechle
656e9503 d1dbd82e

+16 -5
+16
arch/mips/sgi-ip32/ip32-platform.c
··· 90 90 91 91 device_initcall(sgio2btns_devinit); 92 92 93 + static struct resource sgio2_cmos_rsrc[] = { 94 + { 95 + .start = 0x70, 96 + .end = 0x71, 97 + .flags = IORESOURCE_IO 98 + } 99 + }; 100 + 101 + static __init int sgio2_cmos_devinit(void) 102 + { 103 + return IS_ERR(platform_device_register_simple("rtc_cmos", -1, 104 + sgio2_cmos_rsrc, 1)); 105 + } 106 + 107 + device_initcall(sgio2_cmos_devinit); 108 + 93 109 MODULE_AUTHOR("Ralf Baechle <ralf@linux-mips.org>"); 94 110 MODULE_LICENSE("GPL"); 95 111 MODULE_DESCRIPTION("8250 UART probe driver for SGI IP32 aka O2");
-5
arch/mips/sgi-ip32/ip32-setup.c
··· 62 62 } 63 63 #endif 64 64 65 - unsigned long read_persistent_clock(void) 66 - { 67 - return mc146818_get_cmos_time(); 68 - } 69 - 70 65 /* An arbitrary time; this can be decreased if reliability looks good */ 71 66 #define WAIT_MS 10 72 67