[ARM] 3450/1: ep93xx: use the ep93xx rtc driver
authorLennert Buytenhek <buytenh@wantstofly.org>
Sun, 2 Apr 2006 15:17:34 +0000 (16:17 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 2 Apr 2006 15:17:34 +0000 (16:17 +0100)
Patch from Lennert Buytenhek

Instantiate the recently merged ep93xx rtc driver in the ep93xx code.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-ep93xx/core.c

index 2d892e4daa071e0d8b52e4b260b520e6276ffd43..dcd41762538943d90234642daf4a7a59ac7fcdeb 100644 (file)
@@ -424,6 +424,14 @@ static struct amba_device uart3_device = {
        .periphid       = 0x00041010,
 };
 
+
+static struct platform_device ep93xx_rtc_device = {
+       .name           = "ep93xx-rtc",
+       .id             = -1,
+       .num_resources  = 0,
+};
+
+
 void __init ep93xx_init_devices(void)
 {
        unsigned int v;
@@ -439,4 +447,6 @@ void __init ep93xx_init_devices(void)
        amba_device_register(&uart1_device, &iomem_resource);
        amba_device_register(&uart2_device, &iomem_resource);
        amba_device_register(&uart3_device, &iomem_resource);
+
+       platform_device_register(&ep93xx_rtc_device);
 }