aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/sgi-ip22/ip22-platform.c
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>2008-10-14 17:16:55 +0200
committerRalf Baechle <ralf@linux-mips.org>2008-10-15 12:46:51 +0100
commit7d81a5e03ddbb44d05a32cad4a46a23577216497 (patch)
treead785aafe0b7877bcb65ea8c5d6e0571d6a183f6 /arch/mips/sgi-ip22/ip22-platform.c
parent540799e32eb146c9363445d1118b2bfdebd3da0b (diff)
downloadkernel_goldelico_gta04-7d81a5e03ddbb44d05a32cad4a46a23577216497.zip
kernel_goldelico_gta04-7d81a5e03ddbb44d05a32cad4a46a23577216497.tar.gz
kernel_goldelico_gta04-7d81a5e03ddbb44d05a32cad4a46a23577216497.tar.bz2
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.c15
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 52486c4..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);