diff options
Diffstat (limited to 'drivers/watchdog/omap_wdt.c')
-rw-r--r-- | drivers/watchdog/omap_wdt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c index 2b4acb86c191..cd269b4574d1 100644 --- a/drivers/watchdog/omap_wdt.c +++ b/drivers/watchdog/omap_wdt.c | |||
@@ -55,7 +55,7 @@ module_param(timer_margin, uint, 0); | |||
55 | MODULE_PARM_DESC(timer_margin, "initial watchdog timeout (in seconds)"); | 55 | MODULE_PARM_DESC(timer_margin, "initial watchdog timeout (in seconds)"); |
56 | 56 | ||
57 | static unsigned int wdt_trgr_pattern = 0x1234; | 57 | static unsigned int wdt_trgr_pattern = 0x1234; |
58 | static spinlock_t wdt_lock; | 58 | static DEFINE_SPINLOCK(wdt_lock); |
59 | 59 | ||
60 | struct omap_wdt_dev { | 60 | struct omap_wdt_dev { |
61 | void __iomem *base; /* physical */ | 61 | void __iomem *base; /* physical */ |
@@ -439,7 +439,6 @@ static struct platform_driver omap_wdt_driver = { | |||
439 | 439 | ||
440 | static int __init omap_wdt_init(void) | 440 | static int __init omap_wdt_init(void) |
441 | { | 441 | { |
442 | spin_lock_init(&wdt_lock); | ||
443 | return platform_driver_register(&omap_wdt_driver); | 442 | return platform_driver_register(&omap_wdt_driver); |
444 | } | 443 | } |
445 | 444 | ||