realtek: copy dts/files/patches/configs for 5.15
[openwrt/openwrt.git] / target / linux / realtek / patches-5.15 / 308-otto-wdt-fix-missing-math-header.patch
1 From b8fc5eecdc5d33cf261986436597b5482ab856da Mon Sep 17 00:00:00 2001
2 From: Sander Vanheule <sander@svanheule.net>
3 Date: Sun, 14 Nov 2021 19:45:32 +0100
4 Subject: [PATCH] realtek: Backport Realtek Otto WDT driver
5
6 Add patch submitted upstream to linux-watchdog and replace the MIPS
7 architecture symbols. Requires one extra patch for the DIV_ROUND_*
8 macros, which have moved to a different header since 5.10.
9
10 Submitted-by: Sander Vanheule <sander@svanheule.net>
11 Tested-by: Stijn Segers <foss@volatilesystems.org>
12 Tested-by: Paul Fertser <fercerpav@gmail.com>
13 Tested-by: Stijn Tintel <stijn@linux-ipv6.be>
14 ---
15 drivers/watchdog/realtek_otto_wdt.c | 2 +-
16 1 files changed, 1 insertion(+), 1 deletion(-)
17
18 --- a/drivers/watchdog/realtek_otto_wdt.c
19 +++ b/drivers/watchdog/realtek_otto_wdt.c
20 @@ -21,7 +21,7 @@
21 #include <linux/delay.h>
22 #include <linux/interrupt.h>
23 #include <linux/io.h>
24 -#include <linux/math.h>
25 +#include <linux/kernel.h>
26 #include <linux/minmax.h>
27 #include <linux/module.h>
28 #include <linux/mod_devicetable.h>