fix ar2315 watchdog restart (patch from #3953)
authorFelix Fietkau <nbd@openwrt.org>
Sun, 28 Sep 2008 20:23:44 +0000 (20:23 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 28 Sep 2008 20:23:44 +0000 (20:23 +0000)
SVN-Revision: 12775

target/linux/atheros/files/drivers/watchdog/ar2315-wtd.c

index 1737b96..d71b6f6 100644 (file)
@@ -81,7 +81,7 @@ ar2315_wdt_interrupt(int irq, void *dev_id)
        if(started)
        {
                printk(KERN_CRIT "watchdog expired, rebooting system\n");
-               sysRegWrite(AR5315_COLD_RESET, RESET_SYSTEM);
+               emergency_restart();
        } else {
                sysRegWrite(AR5315_WDC, 0);
                sysRegWrite(AR5315_WD, 0);