]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Workqueue changes for retu-rtc
authorDirk Behme <dirk.behme_at_gmail.com>
Tue, 9 Jan 2007 23:23:11 +0000 (15:23 -0800)
committerTony Lindgren <tony@atomide.com>
Tue, 9 Jan 2007 23:23:11 +0000 (15:23 -0800)
ARM: OMAP: Workqueue changes for retu-rtc.c

Signed-off-by: Dirk Behme <dirk.behme_at_gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/cbus/retu-rtc.c

index 97f9d07f9b71d9067641263f04db5ba90c88378d..b36fd06323a923e1a63aae948c7365496f341567 100644 (file)
@@ -40,6 +40,7 @@
 #include <linux/completion.h>
 #include <linux/platform_device.h>
 #include <linux/mutex.h>
+#include <linux/workqueue.h>
 
 #include "cbus.h"
 #include "retu.h"
@@ -312,13 +313,13 @@ static void retu_rtca_disable(void)
        retu_write_reg(RETU_REG_RTCHMAR, (24 << 8) | 60);
 }
 
-static void retu_rtca_expired(void *data)
+static void retu_rtca_expired(struct work_struct *unused)
 {
        retu_rtca_disable();
        sysfs_notify(&retu_rtc_driver.kobj, NULL, "alarm_expired");
 }
 
-DECLARE_WORK(retu_rtca_work, retu_rtca_expired, NULL);
+DECLARE_WORK(retu_rtca_work, retu_rtca_expired);
 
 /*
  * RTCHMR RTCHMAR RTCCAL must be accessed within 0.9 s since the seconds