X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=target%2Flinux%2Far7%2Fpatches-2.6.27%2F140-watchdog_bootcr.patch;fp=target%2Flinux%2Far7%2Fpatches-2.6.27%2F140-watchdog_bootcr.patch;h=0000000000000000000000000000000000000000;hb=7d2dbfd7711b9b089d01cd1a028874ad8bd6c56f;hp=95535def0c63df676c1e12f6a196e9ad422bd8d9;hpb=321cdf5b291bec35c60cbd69b8920cb3f9628038;p=openwrt-10.03%2F.git diff --git a/target/linux/ar7/patches-2.6.27/140-watchdog_bootcr.patch b/target/linux/ar7/patches-2.6.27/140-watchdog_bootcr.patch deleted file mode 100644 index 95535def0..000000000 --- a/target/linux/ar7/patches-2.6.27/140-watchdog_bootcr.patch +++ /dev/null @@ -1,29 +0,0 @@ ---- a/drivers/watchdog/ar7_wdt.c 2009-01-25 01:17:01.000000000 +1300 -+++ b/drivers/watchdog/ar7_wdt.c 2009-01-25 01:19:15.000000000 +1300 -@@ -293,12 +293,26 @@ - .fops = &ar7_wdt_fops, - }; - -+#define AR7_WDT_HARDWARE_ENABLE 0x10 -+ - static int __init ar7_wdt_init(void) - { - int rc; -+ u32 *bootcr; -+ u32 bootcr_value; - - ar7_wdt_get_regs(); - -+ /* arch/mips/ar7/clocks.c is the only other thing that reads this */ -+ bootcr = (u32 *)ioremap_nocache(AR7_REGS_DCL, 4); -+ bootcr_value = *bootcr; -+ iounmap(bootcr); -+ -+ if (!(bootcr_value & AR7_WDT_HARDWARE_ENABLE)) { -+ printk(KERN_INFO DRVNAME ": watchdog disabled in hardware (bootcr=%#x)\n", bootcr_value); -+ return -ENODEV; -+ } -+ - if (!request_mem_region(ar7_regs_wdt, sizeof(struct ar7_wdt), - LONGNAME)) { - printk(KERN_WARNING DRVNAME ": watchdog I/O region busy\n");