1 --- a/drivers/watchdog/mtx-1_wdt.c
2 +++ b/drivers/watchdog/mtx-1_wdt.c
3 @@ -98,6 +98,8 @@ static void mtx1_wdt_reset(void)
5 static void mtx1_wdt_start(void)
9 spin_lock_irqsave(&mtx1_wdt_device.lock, flags);
10 if (!mtx1_wdt_device.queue) {
11 mtx1_wdt_device.queue = 1;
12 @@ -110,6 +112,8 @@ static void mtx1_wdt_start(void)
14 static int mtx1_wdt_stop(void)
16 + unsigned long flags;
18 spin_lock_irqsave(&mtx1_wdt_device.lock, flags);
19 if (mtx1_wdt_device.queue) {
20 mtx1_wdt_device.queue = 0;