diff options
Diffstat (limited to 'drivers/watchdog/orion_wdt.c')
-rw-r--r-- | drivers/watchdog/orion_wdt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/watchdog/orion_wdt.c b/drivers/watchdog/orion_wdt.c index 2d9fb96a9ee9..66bd97f7969a 100644 --- a/drivers/watchdog/orion_wdt.c +++ b/drivers/watchdog/orion_wdt.c | |||
@@ -41,7 +41,7 @@ static int heartbeat = -1; /* module parameter (seconds) */ | |||
41 | static unsigned int wdt_max_duration; /* (seconds) */ | 41 | static unsigned int wdt_max_duration; /* (seconds) */ |
42 | static unsigned int wdt_tclk; | 42 | static unsigned int wdt_tclk; |
43 | static unsigned long wdt_status; | 43 | static unsigned long wdt_status; |
44 | static spinlock_t wdt_lock; | 44 | static DEFINE_SPINLOCK(wdt_lock); |
45 | 45 | ||
46 | static void orion_wdt_ping(void) | 46 | static void orion_wdt_ping(void) |
47 | { | 47 | { |
@@ -296,7 +296,6 @@ static struct platform_driver orion_wdt_driver = { | |||
296 | 296 | ||
297 | static int __init orion_wdt_init(void) | 297 | static int __init orion_wdt_init(void) |
298 | { | 298 | { |
299 | spin_lock_init(&wdt_lock); | ||
300 | return platform_driver_register(&orion_wdt_driver); | 299 | return platform_driver_register(&orion_wdt_driver); |
301 | } | 300 | } |
302 | 301 | ||