Skip to content

Commit 01b6514

Browse files
groecknkskjames
authored andcommitted
watchdog: iTCO: Fix dependencies on I2C
If I2C is built as module, the iTCO watchdog driver must be built as module as well. I2C_I801 must only be selected if I2C is configured. This fixes the following build errors, seen if I2C=m and ITCO_WDT=y. i2c-i801.c:(.text+0x2bf055): undefined reference to `i2c_del_adapter' i2c-i801.c:(.text+0x2c13e0): undefined reference to `i2c_add_adapter' i2c-i801.c:(.text+0x2c17bd): undefined reference to `i2c_new_device' Fixes: 2a7a0e9 ("watchdog: iTCO_wdt: Add support for TCO on Intel Sunrisepoint") Reviewed-by: Matt Fleming <matt.fleming@intel.com> Cc: Lee Jones <lee.jones@linaro.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
1 parent 2648db0 commit 01b6514

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/watchdog/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,8 +817,9 @@ config ITCO_WDT
817817
tristate "Intel TCO Timer/Watchdog"
818818
depends on (X86 || IA64) && PCI
819819
select WATCHDOG_CORE
820+
depends on I2C || I2C=n
820821
select LPC_ICH if !EXPERT
821-
select I2C_I801 if !EXPERT
822+
select I2C_I801 if !EXPERT && I2C
822823
---help---
823824
Hardware driver for the intel TCO timer based watchdog devices.
824825
These drivers are included in the Intel 82801 I/O Controller

0 commit comments

Comments
 (0)