diff options
author | 2008-09-23 00:53:20 +0200 | |
---|---|---|
committer | 2008-10-15 12:46:52 +0100 | |
commit | 656e9503bae1dbc7b0e8c709715e5eda9ae82653 (patch) | |
tree | aa4c0478dcc32e952681cb4fe946ec5892a13ead /arch/mips/sgi-ip32/ip32-platform.c | |
parent | RTC: M48T35: new RTC driver (diff) | |
download | linux-656e9503bae1dbc7b0e8c709715e5eda9ae82653.tar.gz linux-656e9503bae1dbc7b0e8c709715e5eda9ae82653.tar.bz2 linux-656e9503bae1dbc7b0e8c709715e5eda9ae82653.zip |
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>
Diffstat (limited to 'arch/mips/sgi-ip32/ip32-platform.c')
-rw-r--r-- | arch/mips/sgi-ip32/ip32-platform.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/mips/sgi-ip32/ip32-platform.c b/arch/mips/sgi-ip32/ip32-platform.c index 3d63721e0e80..511e9ff2acfd 100644 --- a/arch/mips/sgi-ip32/ip32-platform.c +++ b/arch/mips/sgi-ip32/ip32-platform.c @@ -90,6 +90,22 @@ static __init int sgio2btns_devinit(void) device_initcall(sgio2btns_devinit); +static struct resource sgio2_cmos_rsrc[] = { + { + .start = 0x70, + .end = 0x71, + .flags = IORESOURCE_IO + } +}; + +static __init int sgio2_cmos_devinit(void) +{ + return IS_ERR(platform_device_register_simple("rtc_cmos", -1, + sgio2_cmos_rsrc, 1)); +} + +device_initcall(sgio2_cmos_devinit); + MODULE_AUTHOR("Ralf Baechle <ralf@linux-mips.org>"); MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("8250 UART probe driver for SGI IP32 aka O2"); |