Skip to content

Commit b30c1a4

Browse files
arndbWim Van Sebroeck
authored andcommitted
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: 25f1ca3 ("platform/x86: intel_pmc_ipc: Convert to MFD") Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Guenter Roeck <[email protected]> Reviewed-by: Mika Westerberg <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent a0948dd commit b30c1a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/watchdog/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,6 +1218,7 @@ config ITCO_WDT
12181218
depends on (X86 || IA64) && PCI
12191219
select WATCHDOG_CORE
12201220
depends on I2C || I2C=n
1221+
depends on MFD_INTEL_PMC_BXT || !MFD_INTEL_PMC_BXT
12211222
select LPC_ICH if !EXPERT
12221223
select I2C_I801 if !EXPERT && I2C
12231224
---help---

0 commit comments

Comments
 (0)