diff options
author | Segher Boessenkool <segher@kernel.crashing.org> | 2005-11-17 22:22:14 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-11-18 13:31:20 +1100 |
commit | a097a35c9a6de6316c18a3e914c64400b5a6db57 (patch) | |
tree | d6e873018b552e1c3db80b36d02a09997b1c095c /arch | |
parent | 68643cfb879ad8c327441f875b60981822016575 (diff) | |
download | blackbird-op-linux-a097a35c9a6de6316c18a3e914c64400b5a6db57.tar.gz blackbird-op-linux-a097a35c9a6de6316c18a3e914c64400b5a6db57.zip |
[PATCH] powerpc: Maple: request I/O resource.
Reserve the Maple RTC I/O resource. Needed now we use genrtc.
Signed-off-by: Segher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/maple/time.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/maple/time.c b/arch/powerpc/platforms/maple/time.c index 40fc07a8e606..15846cc938ac 100644 --- a/arch/powerpc/platforms/maple/time.c +++ b/arch/powerpc/platforms/maple/time.c @@ -158,6 +158,11 @@ int maple_set_rtc_time(struct rtc_time *tm) return 0; } +static struct resource rtc_iores = { + .name = "rtc", + .flags = IORESOURCE_BUSY, +}; + unsigned long __init maple_get_boot_time(void) { struct rtc_time tm; @@ -172,7 +177,11 @@ unsigned long __init maple_get_boot_time(void) printk(KERN_INFO "Maple: No device node for RTC, assuming " "legacy address (0x%x)\n", maple_rtc_addr); } - + + rtc_iores.start = maple_rtc_addr; + rtc_iores.end = maple_rtc_addr + 7; + request_resource(&ioport_resource, &rtc_iores); + maple_get_rtc_time(&tm); return mktime(tm.tm_year+1900, tm.tm_mon+1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec); |