]> err.no Git - linux-2.6/blobdiff - drivers/watchdog/bfin_wdt.c
[WATCHDOG] wdt: fix locking
[linux-2.6] / drivers / watchdog / bfin_wdt.c
index 309d27913fc1db6bbffcb40add1c45fd02c098eb..31dc7a69e90c05e89da991a0c684918c19563028 100644 (file)
@@ -71,7 +71,7 @@ static int nowayout = WATCHDOG_NOWAYOUT;
 static struct watchdog_info bfin_wdt_info;
 static unsigned long open_check;
 static char expect_close;
-static spinlock_t bfin_wdt_spinlock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(bfin_wdt_spinlock);
 
 /**
  *     bfin_wdt_keepalive - Keep the Userspace Watchdog Alive