From: Petr Štetiar <ynezz@true.cz>
Date: Thu, 5 Mar 2020 11:46:21 +0000 (+0100)
Subject: malta: fix missing watchdog core dependency for hwmon-sch5627
X-Git-Tag: v21.02.0-rc1~3545
X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e546e6252bb13dd6cc39412867bd542bf4be2d6f;p=openwrt%2Fstaging%2Fpepe2k.git

malta: fix missing watchdog core dependency for hwmon-sch5627

Fixes following error uncovered while building malta/be on 5.4:

 Package kmod-hwmon-sch5627 is missing dependencies for the following libraries:
 watchdog.ko

That dependency was introduced in upstream via 2d8c7ff52c24
("hwmon/sch56xx: Depend on watchdog for watchdog core functions") in
v3.5.

The issue emerged in 5.4 because the kconfig symbol CONFIG_WATCHDOG_CORE
is now a tristate value.  Previously it was a bool

Cc: Yousong Zhou <yszhou4tech@gmail.com>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
(drop the config-4.19 change.  reword about the cause)
---

diff --git a/target/linux/malta/config-5.4 b/target/linux/malta/config-5.4
index 41fc977043..37d3dbef9a 100644
--- a/target/linux/malta/config-5.4
+++ b/target/linux/malta/config-5.4
@@ -341,4 +341,5 @@ CONFIG_VT=y
 CONFIG_VT_CONSOLE=y
 CONFIG_VT_HW_CONSOLE_BINDING=y
 CONFIG_VXFS_FS=y
+CONFIG_WATCHDOG_CORE=y
 CONFIG_XPS=y