Merge branch 'topic/ice1724-pm' into for-linus
[pandora-kernel.git] / arch / mips / cobalt / rtc.c
index 284daef..3ab3989 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *  Registration of Cobalt RTC platform device.
  *
- *  Copyright (C) 2007  Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
+ *  Copyright (C) 2007  Yoichi Yuasa <yuasa@linux-mips.org>
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -20,6 +20,7 @@
 #include <linux/errno.h>
 #include <linux/init.h>
 #include <linux/ioport.h>
+#include <linux/mc146818rtc.h>
 #include <linux/platform_device.h>
 
 static struct resource cobalt_rtc_resource[] __initdata = {
@@ -29,8 +30,8 @@ static struct resource cobalt_rtc_resource[] __initdata = {
                .flags  = IORESOURCE_IO,
        },
        {
-               .start  = 8,
-               .end    = 8,
+               .start  = RTC_IRQ,
+               .end    = RTC_IRQ,
                .flags  = IORESOURCE_IRQ,
        },
 };