aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/ar7_wdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/watchdog/ar7_wdt.c')
-rw-r--r--drivers/watchdog/ar7_wdt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/watchdog/ar7_wdt.c b/drivers/watchdog/ar7_wdt.c
index b29221783598..b9564c5ddab9 100644
--- a/drivers/watchdog/ar7_wdt.c
+++ b/drivers/watchdog/ar7_wdt.c
@@ -70,8 +70,8 @@ struct ar7_wdt {
70}; 70};
71 71
72static unsigned long wdt_is_open; 72static unsigned long wdt_is_open;
73static spinlock_t wdt_lock;
74static unsigned expect_close; 73static unsigned expect_close;
74static DEFINE_SPINLOCK(wdt_lock);
75 75
76/* XXX currently fixed, allows max margin ~68.72 secs */ 76/* XXX currently fixed, allows max margin ~68.72 secs */
77#define prescale_value 0xffff 77#define prescale_value 0xffff
@@ -280,8 +280,6 @@ static int __devinit ar7_wdt_probe(struct platform_device *pdev)
280{ 280{
281 int rc; 281 int rc;
282 282
283 spin_lock_init(&wdt_lock);
284
285 ar7_regs_wdt = 283 ar7_regs_wdt =
286 platform_get_resource_byname(pdev, IORESOURCE_MEM, "regs"); 284 platform_get_resource_byname(pdev, IORESOURCE_MEM, "regs");
287 if (!ar7_regs_wdt) { 285 if (!ar7_regs_wdt) {