]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/watchdog/ixp4xx_wdt.c
ARM: OMAP3: Fix get_irqnr_and_base to clear spurious interrupt bits
[linux-2.6-omap-h63xx.git] / drivers / watchdog / ixp4xx_wdt.c
index ef3157dc9ac1349329563027df8fe21a0f894ba2..8302ef005be7fac9d04814f3f572deb261031277 100644 (file)
 #include <linux/init.h>
 #include <linux/bitops.h>
 #include <linux/uaccess.h>
-
-#include <asm/hardware.h>
+#include <mach/hardware.h>
 
 static int nowayout = WATCHDOG_NOWAYOUT;
 static int heartbeat = 60;     /* (secs) Default is 1 minute */
 static unsigned long wdt_status;
 static unsigned long boot_status;
-static spin_lock_t wdt_lock;
+static DEFINE_SPINLOCK(wdt_lock);
 
 #define WDT_TICK_RATE (IXP4XX_PERIPHERAL_BUS_CLOCK * 1000000UL)