Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[WATCHDOG] bfin_wdt, remove SPIN_LOCK_UNLOCKED

bfin_wdt, remove SPIN_LOCK_UNLOCKED

SPIN_LOCK_UNLOCKED is deprecated, use DEFINE_SPINLOCK instead

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Acked-by: Mike Frysinger <vapier.adi@gmail.com>
Cc: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Jiri Slaby and committed by
Wim Van Sebroeck
bf6350a3 3ff6eb4a

+1 -1
+1 -1
drivers/watchdog/bfin_wdt.c
··· 71 71 static struct watchdog_info bfin_wdt_info; 72 72 static unsigned long open_check; 73 73 static char expect_close; 74 - static spinlock_t bfin_wdt_spinlock = SPIN_LOCK_UNLOCKED; 74 + static DEFINE_SPINLOCK(bfin_wdt_spinlock); 75 75 76 76 /** 77 77 * bfin_wdt_keepalive - Keep the Userspace Watchdog Alive