| From 802d382e3d70d8cb5cab96a46a4124404d98dd6d Mon Sep 17 00:00:00 2001 |
| From: YueHaibing <yuehaibing@huawei.com> |
| Date: Fri, 6 Dec 2019 20:42:59 +0800 |
| Subject: [PATCH] watchdog: tqmx86_wdt: Fix build error |
| |
| commit 9a6c274ac1c4346f5384f2290caeb42dc674c471 upstream. |
| |
| If TQMX86_WDT is y and WATCHDOG_CORE is m, building fails: |
| |
| drivers/watchdog/tqmx86_wdt.o: In function `tqmx86_wdt_probe': |
| tqmx86_wdt.c:(.text+0x46e): undefined reference to `watchdog_init_timeout' |
| tqmx86_wdt.c:(.text+0x4e0): undefined reference to `devm_watchdog_register_device' |
| |
| Select WATCHDOG_CORE to fix this. |
| |
| Reported-by: Hulk Robot <hulkci@huawei.com> |
| Fixes: e3c21e088f89 ("watchdog: tqmx86: Add watchdog driver for the IO controller") |
| Signed-off-by: YueHaibing <yuehaibing@huawei.com> |
| Reviewed-by: Guenter Roeck <linux@roeck-us.net> |
| Link: https://lore.kernel.org/r/20191206124259.25880-1-yuehaibing@huawei.com |
| Signed-off-by: Guenter Roeck <linux@roeck-us.net> |
| Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org> |
| Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig |
| index ffe754539f5a..c55f5c19ce09 100644 |
| --- a/drivers/watchdog/Kconfig |
| +++ b/drivers/watchdog/Kconfig |
| @@ -1437,6 +1437,7 @@ config SMSC37B787_WDT |
| config TQMX86_WDT |
| tristate "TQ-Systems TQMX86 Watchdog Timer" |
| depends on X86 |
| + select WATCHDOG_CORE |
| help |
| This is the driver for the hardware watchdog timer in the TQMX86 IO |
| controller found on some of their ComExpress Modules. |
| -- |
| 2.7.4 |
| |