realtek: Convert incorrect v5.10 patches
[openwrt/staging/dedeckeh.git] / target / linux / realtek / patches-5.10 / 307-wdt-update-dependency-for-realtek-otto-wdt.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/Kconfig | 4 ++--
16 1 file changed, 2 insertions(+), 2 deletions(-)
17
18 --- a/drivers/watchdog/Kconfig
19 +++ b/drivers/watchdog/Kconfig
20 @@ -997,10 +997,10 @@ config RTD119X_WATCHDOG
21
22 config REALTEK_OTTO_WDT
23 tristate "Realtek Otto MIPS watchdog support"
24 - depends on MACH_REALTEK_RTL || COMPILE_TEST
25 + depends on RTL83XX
26 depends on COMMON_CLK
27 select WATCHDOG_CORE
28 - default MACH_REALTEK_RTL
29 + default RTL83XX
30 help
31 Say Y here to include support for the watchdog timer on Realtek
32 RTL838x, RTL839x, RTL930x SoCs. This watchdog has pretimeout