1 --- a/drivers/watchdog/ar7_wdt.c 2009-01-25 01:17:01.000000000 +1300
2 +++ b/drivers/watchdog/ar7_wdt.c 2009-01-25 01:19:15.000000000 +1300
7 +#define AR7_WDT_HARDWARE_ENABLE 0x10
9 static int __init ar7_wdt_init(void)
17 + /* arch/mips/ar7/clocks.c is the only other thing that reads this */
18 + bootcr = (u32 *)ioremap_nocache(AR7_REGS_DCL, 4);
19 + bootcr_value = *bootcr;
22 + if (!(bootcr_value & AR7_WDT_HARDWARE_ENABLE)) {
23 + printk(KERN_INFO DRVNAME ": watchdog disabled in hardware (bootcr=%#x)\n", bootcr_value);
27 if (!request_mem_region(ar7_regs_wdt, sizeof(struct ar7_wdt),
29 printk(KERN_WARNING DRVNAME ": watchdog I/O region busy\n");