Commit 0f0dbd9b authored by Shyam Saini's avatar Shyam Saini Committed by Wim Van Sebroeck

watchdog: ts72xx_wdt: fix build error

If TS72XX_WATCHDOG is y and WATCHDOG_CORE is not enabled or its m,
then building fails:

drivers/watchdog/ts72xx_wdt.o: in function `ts72xx_wdt_probe':
	ts72xx_wdt.c:(.text+0x14c): undefined reference to \
	`watchdog_init_timeout'
	ts72xx_wdt.c:(.text+0x15c): undefined reference to \
	`devm_watchdog_register_device'

Select WATCHDOG_CORE to fix this.
Signed-off-by: default avatarShyam Saini <shyam.saini@savoirfairelinux.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20200406215008.30468-1-shyam.saini@savoirfairelinux.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@linux-watchdog.org>
parent 9cb1fd0e
...@@ -678,6 +678,7 @@ config TS4800_WATCHDOG ...@@ -678,6 +678,7 @@ config TS4800_WATCHDOG
config TS72XX_WATCHDOG config TS72XX_WATCHDOG
tristate "TS-72XX SBC Watchdog" tristate "TS-72XX SBC Watchdog"
depends on MACH_TS72XX || COMPILE_TEST depends on MACH_TS72XX || COMPILE_TEST
select WATCHDOG_CORE
help help
Technologic Systems TS-7200, TS-7250 and TS-7260 boards have Technologic Systems TS-7200, TS-7250 and TS-7260 boards have
watchdog timer implemented in a external CPLD chip. Say Y here watchdog timer implemented in a external CPLD chip. Say Y here
......
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