aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/patches-4.9/611-MIPS-ath79-wdt-timeout.patch
diff options
context:
space:
mode:
authorKoen Vandeputte <koen.vandeputte@ncentric.com>2018-10-10 11:42:42 +0200
committerKoen Vandeputte <koen.vandeputte@ncentric.com>2018-10-10 15:12:01 +0200
commit13f283198ef49dedd49c106176f80dfffa16c3a8 (patch)
tree33f816b19644afca9c3798a1120007ff45441dde /target/linux/ar71xx/patches-4.9/611-MIPS-ath79-wdt-timeout.patch
parent77d004de6d09edc6d8a5cf77471d52d4865ae577 (diff)
downloadupstream-13f283198ef49dedd49c106176f80dfffa16c3a8.tar.gz
upstream-13f283198ef49dedd49c106176f80dfffa16c3a8.tar.bz2
upstream-13f283198ef49dedd49c106176f80dfffa16c3a8.zip
ar71xx: remove linux 4.9 support
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Diffstat (limited to 'target/linux/ar71xx/patches-4.9/611-MIPS-ath79-wdt-timeout.patch')
-rw-r--r--target/linux/ar71xx/patches-4.9/611-MIPS-ath79-wdt-timeout.patch25
1 files changed, 0 insertions, 25 deletions
diff --git a/target/linux/ar71xx/patches-4.9/611-MIPS-ath79-wdt-timeout.patch b/target/linux/ar71xx/patches-4.9/611-MIPS-ath79-wdt-timeout.patch
deleted file mode 100644
index 0927d5a977..0000000000
--- a/target/linux/ar71xx/patches-4.9/611-MIPS-ath79-wdt-timeout.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-MIPS: ath79: fix maximum timeout
-
-If the userland tries to set a timeout higher than the max_timeout, then we should fallback to max_timeout.
-
-Signed-off-by: John Crispin <blogic@openwrt.org>
-
---- a/drivers/watchdog/ath79_wdt.c
-+++ b/drivers/watchdog/ath79_wdt.c
-@@ -115,10 +115,14 @@ static inline void ath79_wdt_disable(voi
-
- static int ath79_wdt_set_timeout(int val)
- {
-- if (val < 1 || val > max_timeout)
-+ if (val < 1)
- return -EINVAL;
-
-- timeout = val;
-+ if (val > max_timeout)
-+ timeout = max_timeout;
-+ else
-+ timeout = val;
-+
- ath79_wdt_keepalive();
-
- return 0;