]> Git Repo - linux.git/commitdiff
watchdog: wdat_wdt: Select WATCHDOG_CORE
authorMika Westerberg <[email protected]>
Mon, 21 Nov 2016 13:33:07 +0000 (15:33 +0200)
committerRafael J. Wysocki <[email protected]>
Mon, 21 Nov 2016 21:49:17 +0000 (22:49 +0100)
The WDAT watchdog driver uses functionality provided by the watchdog timer
core but it did not select it explicitly. This results following linker
error when only WDAT_WDT is enabled in Kconfig:

  drivers/built-in.o: In function `wdat_wdt_probe':
  drivers/watchdog/wdat_wdt.c:444: undefined reference to `devm_watchdog_register_device'

Fix this by explicitly selecting WATCHDOG_CORE when WDAT watchdog driver is
enabled.

Fixes: 058dfc767008 (ACPI / watchdog: Add support for WDAT hardware watchdog)
Reported-by: Vegard Nossum <[email protected]>
Signed-off-by: Mika Westerberg <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
drivers/watchdog/Kconfig

index 50dbaa8056581532a7fc535308792782cadb2e1f..616a0b2d77688ee03b138e09620d0442c27307ef 100644 (file)
@@ -155,6 +155,7 @@ config TANGOX_WATCHDOG
 config WDAT_WDT
        tristate "ACPI Watchdog Action Table (WDAT)"
        depends on ACPI
+       select WATCHDOG_CORE
        select ACPI_WATCHDOG
        help
          This driver adds support for systems with ACPI Watchdog Action
This page took 0.05426 seconds and 4 git commands to generate.