Commit 9a6c274a authored by YueHaibing's avatar YueHaibing Committed by Wim Van Sebroeck

watchdog: tqmx86_wdt: Fix build error

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: default avatarHulk Robot <hulkci@huawei.com>
Fixes: e3c21e08 ("watchdog: tqmx86: Add watchdog driver for the IO controller")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20191206124259.25880-1-yuehaibing@huawei.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@linux-watchdog.org>
parent da9e3f4e
...@@ -1445,6 +1445,7 @@ config SMSC37B787_WDT ...@@ -1445,6 +1445,7 @@ config SMSC37B787_WDT
config TQMX86_WDT config TQMX86_WDT
tristate "TQ-Systems TQMX86 Watchdog Timer" tristate "TQ-Systems TQMX86 Watchdog Timer"
depends on X86 depends on X86
select WATCHDOG_CORE
help help
This is the driver for the hardware watchdog timer in the TQMX86 IO This is the driver for the hardware watchdog timer in the TQMX86 IO
controller found on some of their ComExpress Modules. controller found on some of their ComExpress Modules.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment