diff options
Diffstat (limited to 'drivers/watchdog/ks8695_wdt.c')
-rw-r--r-- | drivers/watchdog/ks8695_wdt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/watchdog/ks8695_wdt.c b/drivers/watchdog/ks8695_wdt.c index 811471903e8a..51757a520e8f 100644 --- a/drivers/watchdog/ks8695_wdt.c +++ b/drivers/watchdog/ks8695_wdt.c | |||
@@ -42,7 +42,7 @@ MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" | |||
42 | 42 | ||
43 | 43 | ||
44 | static unsigned long ks8695wdt_busy; | 44 | static unsigned long ks8695wdt_busy; |
45 | static spinlock_t ks8695_lock; | 45 | static DEFINE_SPINLOCK(ks8695_lock); |
46 | 46 | ||
47 | /* ......................................................................... */ | 47 | /* ......................................................................... */ |
48 | 48 | ||
@@ -288,7 +288,6 @@ static struct platform_driver ks8695wdt_driver = { | |||
288 | 288 | ||
289 | static int __init ks8695_wdt_init(void) | 289 | static int __init ks8695_wdt_init(void) |
290 | { | 290 | { |
291 | spin_lock_init(&ks8695_lock); | ||
292 | /* Check that the heartbeat value is within range; | 291 | /* Check that the heartbeat value is within range; |
293 | if not reset to the default */ | 292 | if not reset to the default */ |
294 | if (ks8695_wdt_settimeout(wdt_time)) { | 293 | if (ks8695_wdt_settimeout(wdt_time)) { |