]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: iTCO: fix link error
authorArnd Bergmann <arnd@arndb.de>
Tue, 28 Apr 2020 21:29:11 +0000 (23:29 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 6 May 2020 12:49:24 +0000 (15:49 +0300)
commit9281998d3ee09866a1a1ec8edbaeb9d5dd7c6c88
treed48331d7ce8194802f9463a39ceab8090707df20
parent348c77d4bca20572b67e3e506b0c0355e174f857
watchdog: iTCO: fix link error

When the MFD driver is a loadable module, the watchdog driver fails
to get linked into the kernel:

drivers/watchdog/iTCO_wdt.o: In function `update_no_reboot_bit_pmc':
iTCO_wdt.c:(.text+0x54f): undefined reference to `intel_pmc_gcr_update'

The code is written to support operation without the MFD driver, so
add a Kconfig dependency that allows this, while disallowing the watchdog
to be built-in when the MFD driver is a module.

Fixes: a62f1bb179c5 ("platform/x86: intel_pmc_ipc: Convert to MFD")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/watchdog/Kconfig