Commit 7e2e5158e700f2196dff3b68ac07405575e09c22

Authored by Matteo Croce
Committed by Wim Van Sebroeck
1 parent 20e6bb17fa

watchdog: i6300esb: fix build failure

i6300esb uses fuctions defined in watchdog_core.c, and when
CONFIG_WATCHDOG_CORE is not set we have this build error:

drivers/watchdog/i6300esb.o: In function `esb_remove':
i6300esb.c:(.text+0xcc): undefined reference to `watchdog_unregister_device'
drivers/watchdog/i6300esb.o: In function `esb_probe':
i6300esb.c:(.text+0x2a1): undefined reference to `watchdog_init_timeout'
i6300esb.c:(.text+0x388): undefined reference to `watchdog_register_device'
make: *** [Makefile:1029: vmlinux] Error 1

Fix this by selecting CONFIG_WATCHDOG_CORE when I6300ESB_WDT is set.

Fixes: 7af4ac8772a8f ("watchdog: i6300esb: use the watchdog subsystem")
Signed-off-by: Matteo Croce <mcroce@redhat.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
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
... ... @@ -1009,6 +1009,7 @@
1009 1009 config I6300ESB_WDT
1010 1010 tristate "Intel 6300ESB Timer/Watchdog"
1011 1011 depends on PCI
  1012 + select WATCHDOG_CORE
1012 1013 ---help---
1013 1014 Hardware driver for the watchdog timer built into the Intel
1014 1015 6300ESB controller hub.