]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: davinci: remove rtc kicker release
authorAfzal Mohammed <afzal@ti.com>
Sat, 3 Nov 2012 00:42:53 +0000 (11:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 6 Nov 2012 04:58:41 +0000 (15:58 +1100)
rtc-omap driver is now capable of handling kicker mechanism, hence remove
kicker handling at platform level, instead provide proper device name so
that driver can handle kicker mechanism by itself

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Acked-by: Sekhar Nori <nsekhar@ti.com>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Sekhar Nori <nsekhar@ti.com>
Cc: Kevin Hilman <khilman@ti.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Daniel Mack <zonque@gmail.com>
Cc: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/arm/mach-davinci/devices-da8xx.c

index bd2f72b414bce03c87b4921e2962ff709cf815e4..2d25b24afc5dd42a3693c553b1c67286e11a80db 100644 (file)
@@ -674,7 +674,7 @@ static struct resource da8xx_rtc_resources[] = {
 };
 
 static struct platform_device da8xx_rtc_device = {
-       .name           = "omap_rtc",
+       .name           = "da830-rtc",
        .id             = -1,
        .num_resources  = ARRAY_SIZE(da8xx_rtc_resources),
        .resource       = da8xx_rtc_resources,
@@ -683,17 +683,6 @@ static struct platform_device da8xx_rtc_device = {
 int da8xx_register_rtc(void)
 {
        int ret;
-       void __iomem *base;
-
-       base = ioremap(DA8XX_RTC_BASE, SZ_4K);
-       if (WARN_ON(!base))
-               return -ENOMEM;
-
-       /* Unlock the rtc's registers */
-       __raw_writel(0x83e70b13, base + 0x6c);
-       __raw_writel(0x95a4f1e0, base + 0x70);
-
-       iounmap(base);
 
        ret = platform_device_register(&da8xx_rtc_device);
        if (!ret)