watchdog: imgdpc: select WATCHDOG_CORE
authorArnd Bergmann <arnd@arndb.de>
Mon, 25 Jan 2016 16:06:27 +0000 (17:06 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 31 Jan 2016 15:52:56 +0000 (16:52 +0100)
The imgpdc_wdt driver can be built on all architectures with
CONFIG_COMPILE_TEST, but fails if no other watchdog driver is
enabled:

drivers/watchdog/built-in.o: In function `pdc_wdt_remove':
imgpdc_wdt.c:(.text+0x74): undefined reference to `watchdog_unregister_device'

This adds the normal 'select WATCHDOG_CORE' that is needed to
ensure the driver always builds cleanly.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/Kconfig

index e723e0169f8832168eacf7daaa2cb0ce4c774c86..0847f2e22e55b147a756ce631bf9a9687b9405f0 100644 (file)
@@ -1383,6 +1383,7 @@ config IMGPDC_WDT
        tristate "Imagination Technologies PDC Watchdog Timer"
        depends on HAS_IOMEM
        depends on METAG || MIPS || COMPILE_TEST
+       select WATCHDOG_CORE
        help
          Driver for Imagination Technologies PowerDown Controller
          Watchdog Timer.