diff options
author | Wim Van Sebroeck <wim@linux-watchdog.org> | 2018-02-19 11:04:33 -0500 |
---|---|---|
committer | Wim Van Sebroeck <wim@linux-watchdog.org> | 2018-02-19 11:44:05 -0500 |
commit | a17f4f032b61abd998a1f81b206a4517e2e3db2f (patch) | |
tree | 2a7aae098a1d0f529b7a68a9168547636da2a692 /drivers | |
parent | 4cd6764495f2b6c2d3dc4fdd339f78764f7995d5 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/watchdog/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index 3d984cdea0ca..37460cd6cabb 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig | |||
@@ -904,6 +904,7 @@ config F71808E_WDT | |||
904 | config SP5100_TCO | 904 | config SP5100_TCO |
905 | tristate "AMD/ATI SP5100 TCO Timer/Watchdog" | 905 | tristate "AMD/ATI SP5100 TCO Timer/Watchdog" |
906 | depends on X86 && PCI | 906 | depends on X86 && PCI |
907 | select WATCHDOG_CORE | ||
907 | ---help--- | 908 | ---help--- |
908 | Hardware watchdog driver for the AMD/ATI SP5100 chipset. The TCO | 909 | Hardware watchdog driver for the AMD/ATI SP5100 chipset. The TCO |
909 | (Total Cost of Ownership) timer is a watchdog timer that will reboot | 910 | (Total Cost of Ownership) timer is a watchdog timer that will reboot |