]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: sp5100_tco.c: fix potential build failure
authorWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 19 Feb 2018 16:04:33 +0000 (17:04 +0100)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 19 Feb 2018 16:44:05 +0000 (17:44 +0100)
commit54977dd768b290503fa432e5bc5907700768bd9e
tree2a7aae098a1d0f529b7a68a9168547636da2a692
parente6abe52ad7da6336ef9653ec6a0c91807c1c6752
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: 76185b4c96dc ("watchdog: sp5100_tco: Convert to use watchdog subsystem")
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/Kconfig