diff options
author | Sander Vanheule <sander@svanheule.net> | 2021-11-14 19:45:32 +0100 |
---|---|---|
committer | Stijn Tintel <stijn@linux-ipv6.be> | 2021-11-24 21:43:21 +0200 |
commit | b8fc5eecdc5d33cf261986436597b5482ab856da (patch) | |
tree | 7cd0d3a7819e5fe980f1b7eaf6d8435f3f826699 /target/linux/realtek/patches-5.10/308-otto-wdt-fix-missing-math-header.patch | |
parent | d3a62bea085ddd959d195671dcbeba9829e47dae (diff) | |
download | upstream-b8fc5eecdc5d33cf261986436597b5482ab856da.tar.gz upstream-b8fc5eecdc5d33cf261986436597b5482ab856da.tar.bz2 upstream-b8fc5eecdc5d33cf261986436597b5482ab856da.zip |
realtek: Backport Realtek Otto WDT driver
Add patch submitted upstream to linux-watchdog and replace the MIPS
architecture symbols. Requires one extra patch for the DIV_ROUND_*
macros, which have moved to a different header since 5.10.
Signed-off-by: Sander Vanheule <sander@svanheule.net>
Tested-by: Stijn Segers <foss@volatilesystems.org>
Tested-by: Paul Fertser <fercerpav@gmail.com>
Tested-by: Stijn Tintel <stijn@linux-ipv6.be>
Diffstat (limited to 'target/linux/realtek/patches-5.10/308-otto-wdt-fix-missing-math-header.patch')
-rw-r--r-- | target/linux/realtek/patches-5.10/308-otto-wdt-fix-missing-math-header.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/realtek/patches-5.10/308-otto-wdt-fix-missing-math-header.patch b/target/linux/realtek/patches-5.10/308-otto-wdt-fix-missing-math-header.patch new file mode 100644 index 0000000000..20f86ed7e2 --- /dev/null +++ b/target/linux/realtek/patches-5.10/308-otto-wdt-fix-missing-math-header.patch @@ -0,0 +1,13 @@ +Index: linux-5.10.72/drivers/watchdog/realtek_otto_wdt.c +=================================================================== +--- linux-5.10.72.orig/drivers/watchdog/realtek_otto_wdt.c ++++ linux-5.10.72/drivers/watchdog/realtek_otto_wdt.c +@@ -21,7 +21,7 @@ + #include <linux/delay.h> + #include <linux/interrupt.h> + #include <linux/io.h> +-#include <linux/math.h> ++#include <linux/kernel.h> + #include <linux/minmax.h> + #include <linux/module.h> + #include <linux/mod_devicetable.h> |