[WATCHDOG] spin_lock_init() fixes
authorAlexey Dobriyan <adobriyan@sw.ru>
Thu, 1 Nov 2007 23:27:08 +0000 (16:27 -0700)
committerWim Van Sebroeck <wim@iguana.be>
Fri, 2 Nov 2007 19:09:07 +0000 (19:09 +0000)
commitc7dfd0cca300c5dc49213cf1c78c77393600410d
tree5a4a5ecb5ab0215113eacf763a9d15500a02b0ee
parent2ba7d7b39f3adf3f71aa3acab00111a429056c7d
[WATCHDOG] spin_lock_init() fixes

Some watchdog drivers initialize global spinlocks in module's init function
which is tolerable, but some do it in PCI probe function.  So, switch to
static initialization to fix theoretical bugs and, more importantly, stop
giving people bad examples.

Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
19 files changed:
drivers/watchdog/alim1535_wdt.c
drivers/watchdog/davinci_wdt.c
drivers/watchdog/i6300esb.c
drivers/watchdog/ib700wdt.c
drivers/watchdog/machzwd.c
drivers/watchdog/mpc83xx_wdt.c
drivers/watchdog/pc87413_wdt.c
drivers/watchdog/pnx4008_wdt.c
drivers/watchdog/sbc8360.c
drivers/watchdog/sc1200wdt.c
drivers/watchdog/sc520_wdt.c
drivers/watchdog/smsc37b787_wdt.c
drivers/watchdog/w83627hf_wdt.c
drivers/watchdog/w83697hf_wdt.c
drivers/watchdog/w83877f_wdt.c
drivers/watchdog/w83977f_wdt.c
drivers/watchdog/wafer5823wdt.c
drivers/watchdog/wdt977.c
drivers/watchdog/wdt_pci.c