watchdog: ts72xx_wdt: fix build error
authorShyam Saini <mayhs11saini@gmail.com>
Mon, 6 Apr 2020 21:50:08 +0000 (03:20 +0530)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 25 May 2020 06:55:39 +0000 (08:55 +0200)
commit0f0dbd9b36bbca6ffc0852d7859edc0ac8f11727
tree2a9931fb654b1c1ec0947c2f00c10517c6e09797
parent9cb1fd0efd195590b828b9b865421ad345a4a145
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: Shyam Saini <shyam.saini@savoirfairelinux.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20200406215008.30468-1-shyam.saini@savoirfairelinux.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/Kconfig