diff options
author | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2008-10-14 15:16:55 (GMT) |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-10-15 11:46:51 (GMT) |
commit | 7d81a5e03ddbb44d05a32cad4a46a23577216497 (patch) | |
tree | ad785aafe0b7877bcb65ea8c5d6e0571d6a183f6 /arch/mips/sgi-ip22/ip22-platform.c | |
parent | 540799e32eb146c9363445d1118b2bfdebd3da0b (diff) | |
download | linux-7d81a5e03ddbb44d05a32cad4a46a23577216497.tar.xz |
MIPS: IP22/28: Switch over to RTC class driver
This patchset removes some dead code and creates a platform device
for the RTC class driver.
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/sgi-ip22/ip22-platform.c')
-rw-r--r-- | arch/mips/sgi-ip22/ip22-platform.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/mips/sgi-ip22/ip22-platform.c b/arch/mips/sgi-ip22/ip22-platform.c index 52486c4d..deddbf0 100644 --- a/arch/mips/sgi-ip22/ip22-platform.c +++ b/arch/mips/sgi-ip22/ip22-platform.c @@ -192,3 +192,18 @@ static int __init sgi_button_devinit(void) } device_initcall(sgi_button_devinit); + +static int __init sgi_ds1286_devinit(void) +{ + struct resource res; + + memset(&res, 0, sizeof(res)); + res.start = HPC3_CHIP0_BASE + offsetof(struct hpc3_regs, rtcregs); + res.end = res.start + sizeof(hpc3c0->rtcregs) - 1; + res.flags = IORESOURCE_MEM; + + return IS_ERR(platform_device_register_simple("rtc-ds1286", -1, + &res, 1)); +} + +device_initcall(sgi_ds1286_devinit); |