[PATCH] Maple: request I/O resource.
Segher Boessenkool
segher at kernel.crashing.org
Fri Nov 18 08:22:14 EST 2005
Against 2.6.15-rc1-git5.
Segher
[Also attached as I'm sure my mailer will screw it up].
Reserve the Maple RTC I/O resource. Needed now we use genrtc.
Signed-off-by: Segher Boessenkool <segher at kernel.crashing.org>
--
Index: linux-2.6.15-rc1/arch/powerpc/platforms/maple/time.c
===================================================================
--- linux-2.6.15-rc1.orig/arch/powerpc/platforms/maple/time.c
2005-11-17 22:04:31.197832600 +0100
+++ linux-2.6.15-rc1/arch/powerpc/platforms/maple/time.c
2005-11-17 22:05:37.402754864 +0100
@@ -158,6 +158,11 @@
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 @@
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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-maple-time-resource
Type: application/octet-stream
Size: 1049 bytes
Desc: not available
Url : http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20051117/795d95eb/attachment.obj
More information about the Linuxppc64-dev
mailing list