diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2009-11-11 11:38:02 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2009-11-11 11:38:02 +0000 |
commit | 88401c2052f78509c26b72d24c7fb0c260ec55f2 (patch) | |
tree | e81b0f3b2828d47ca78b66c97ae9f3a8d6f1d8e9 /target/linux/ar7/patches-2.6.27/140-watchdog_bootcr.patch | |
parent | a01ec2469bcee5eb55f479160b77a1a28d39cef9 (diff) | |
download | upstream-88401c2052f78509c26b72d24c7fb0c260ec55f2.tar.gz upstream-88401c2052f78509c26b72d24c7fb0c260ec55f2.tar.bz2 upstream-88401c2052f78509c26b72d24c7fb0c260ec55f2.zip |
we don't support the 2.6.27 kernels for a long time now
SVN-Revision: 18369
Diffstat (limited to 'target/linux/ar7/patches-2.6.27/140-watchdog_bootcr.patch')
-rw-r--r-- | target/linux/ar7/patches-2.6.27/140-watchdog_bootcr.patch | 29 |
1 files changed, 0 insertions, 29 deletions
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 95535def0c..0000000000 --- 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"); |