diff options
Diffstat (limited to 'target/linux/au1000/patches-2.6.27/005-mtx1_wdt_fix.patch')
-rw-r--r-- | target/linux/au1000/patches-2.6.27/005-mtx1_wdt_fix.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/target/linux/au1000/patches-2.6.27/005-mtx1_wdt_fix.patch b/target/linux/au1000/patches-2.6.27/005-mtx1_wdt_fix.patch new file mode 100644 index 0000000..0b0fc02 --- /dev/null +++ b/target/linux/au1000/patches-2.6.27/005-mtx1_wdt_fix.patch @@ -0,0 +1,23 @@ +diff --git a/drivers/watchdog/mtx-1_wdt.c b/drivers/watchdog/mtx-1_wdt.c +index b4b7b0a..3acce62 100644 +--- a/drivers/watchdog/mtx-1_wdt.c ++++ b/drivers/watchdog/mtx-1_wdt.c +@@ -98,6 +98,8 @@ static void mtx1_wdt_reset(void) + + static void mtx1_wdt_start(void) + { ++ unsigned long flags; ++ + spin_lock_irqsave(&mtx1_wdt_device.lock, flags); + if (!mtx1_wdt_device.queue) { + mtx1_wdt_device.queue = 1; +@@ -110,6 +112,8 @@ static void mtx1_wdt_start(void) + + static int mtx1_wdt_stop(void) + { ++ unsigned long flags; ++ + spin_lock_irqsave(&mtx1_wdt_device.lock, flags); + if (mtx1_wdt_device.queue) { + mtx1_wdt_device.queue = 0; + |