Commit a17f4f032b61abd998a1f81b206a4517e2e3db2f

Authored by Wim Van Sebroeck
1 parent 4cd6764495

watchdog: sp5100_tco.c: fix potential build failure

isp5100_tco.c  uses watchdog core functions (from watchdog_core.c) and, when
compiled without CONFIG_WATCHDOG_CORE being set, it produces the
following build error:

ERROR: "devm_watchdog_register_device" [drivers/watchdog/sp5100_tco.ko] undefined!
ERROR: "watchdog_init_timeout" [drivers/watchdog/sp5100_tco.ko] undefined!

Fix this by selecting CONFIG_WATCHDOG_CORE.

Fixes: 7cd9d5fff792 ("watchdog: sp5100_tco: Convert to use watchdog subsystem")
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/watchdog/Kconfig
... ... @@ -904,6 +904,7 @@
904 904 config SP5100_TCO
905 905 tristate "AMD/ATI SP5100 TCO Timer/Watchdog"
906 906 depends on X86 && PCI
  907 + select WATCHDOG_CORE
907 908 ---help---
908 909 Hardware watchdog driver for the AMD/ATI SP5100 chipset. The TCO
909 910 (Total Cost of Ownership) timer is a watchdog timer that will reboot