[PATCH 2/5] Watchdog: bfin_wdt, remove SPIN_LOCK_UNLOCKED

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: <linux-kernel@...>, Wim Van Sebroeck <wim@...>, <michael.frysinger@...>, <vapier.adi@...>
Date: Friday, November 9, 2007 - 7:32 pm

bfin_wdt, remove SPIN_LOCK_UNLOCKED

SPIN_LOCK_UNLOCKED is deprecated, use DEFINE_SPINLOCK instead

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Wim Van Sebroeck <wim@iguana.be>

---
commit 5290a0e1fffeb61f0062ebca98e45a6a5ba75711
tree 4d377ca30153b48b32b4d2c079ab884983c0091d
parent aefcf0f6b6ab925184e7cebff8b609e4da1f5c0d
author Jiri Slaby <jirislaby@gmail.com> Thu, 25 Oct 2007 11:55:29 +0200
committer Jiri Slaby <jirislaby@gmail.com> Thu, 25 Oct 2007 11:55:29 +0200

 drivers/watchdog/bfin_wdt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/watchdog/bfin_wdt.c b/drivers/watchdog/bfin_wdt.c
index 309d279..31dc7a6 100644
--- a/drivers/watchdog/bfin_wdt.c
+++ b/drivers/watchdog/bfin_wdt.c
@@ -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
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 5/5] Net: sunrpc, remove SPIN_LOCK_UNLOCKED, Jiri Slaby, (Fri Nov 9, 7:34 pm)
[PATCH 4/5] FS: sysfs, remove SPIN_LOCK_UNLOCKED, Jiri Slaby, (Fri Nov 9, 7:33 pm)
Re: [PATCH 3/5] Sbus: cpwatchdog, remove SPIN_LOCK_UNLOCKED, Wim Van Sebroeck, (Sat Nov 10, 10:46 am)
[PATCH 2/5] Watchdog: bfin_wdt, remove SPIN_LOCK_UNLOCKED, Jiri Slaby, (Fri Nov 9, 7:32 pm)
Re: [PATCH 2/5] Watchdog: bfin_wdt, remove SPIN_LOCK_UNLOCKED, Wim Van Sebroeck, (Sat Nov 10, 10:45 am)