aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/omap_wdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/watchdog/omap_wdt.c')
-rw-r--r--drivers/watchdog/omap_wdt.c3
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);
55MODULE_PARM_DESC(timer_margin, "initial watchdog timeout (in seconds)"); 55MODULE_PARM_DESC(timer_margin, "initial watchdog timeout (in seconds)");
56 56
57static unsigned int wdt_trgr_pattern = 0x1234; 57static unsigned int wdt_trgr_pattern = 0x1234;
58static spinlock_t wdt_lock; 58static DEFINE_SPINLOCK(wdt_lock);
59 59
60struct omap_wdt_dev { 60struct 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
440static int __init omap_wdt_init(void) 440static 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