move the txpower option to wifi-iface to mimic madwifi configuration
[openwrt.git] / target / linux / au1000 / patches-2.6.27 / 005-mtx1_wdt_fix.patch
1 diff --git a/drivers/watchdog/mtx-1_wdt.c b/drivers/watchdog/mtx-1_wdt.c
2 index b4b7b0a..3acce62 100644
3 --- a/drivers/watchdog/mtx-1_wdt.c
4 +++ b/drivers/watchdog/mtx-1_wdt.c
5 @@ -98,6 +98,8 @@ static void mtx1_wdt_reset(void)
6
7 static void mtx1_wdt_start(void)
8 {
9 + unsigned long flags;
10 +
11 spin_lock_irqsave(&mtx1_wdt_device.lock, flags);
12 if (!mtx1_wdt_device.queue) {
13 mtx1_wdt_device.queue = 1;
14 @@ -110,6 +112,8 @@ static void mtx1_wdt_start(void)
15
16 static int mtx1_wdt_stop(void)
17 {
18 + unsigned long flags;
19 +
20 spin_lock_irqsave(&mtx1_wdt_device.lock, flags);
21 if (mtx1_wdt_device.queue) {
22 mtx1_wdt_device.queue = 0;
23
This page took 0.042789 seconds and 5 git commands to generate.