Skip to contentSkip to conversation

hwmon: ftsteutates: add watchdog dependency

PATCH In review Arnd Bergmann 2 participants 2 messages Jul 20, 2016 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwmon: ftsteutates: add watchdog dependency

The newly added fts "Teutates" hwmon chip contains a watchdog but fails to link when the watchdog subsystem is disabled:

drivers/hwmon/built-in.o: In function `fts_remove':
:(.text+0x161d8): undefined reference to watchdog_unregister_device' drivers/hwmon/built-in.o: In function fts_probe':
:(.text+0x16cb4): undefined reference to `watchdog_register_device'

This adds a Kconfig dependency in the same way that the other similar drivers have.

Fixes ec9268ba1a96 ("hwmon: Add driver for FTS BMC chip "Teutates"")
---
 drivers/hwmon/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/hwmon/Kconfig +2 -1
index 15479eb15fa2..eaf2f916d48c 100644
@@ -488,7 +488,8 @@ config SENSORS_FSCHMD
 
 config SENSORS_FTSTEUTATES
 	tristate "Fujitsu Technology Solutions sensor chip Teutates"
-	depends on I2C
+	depends on I2C && WATCHDOG
+	select WATCHDOG_CORE
 	help
 	  If you say yes here you get support for the Fujitsu Technology
 	  Solutions (FTS) sensor chip "Teutates" including support for
Signature · 1 line
2.9.0
maintainer
#1 lore raw
Quoted 8 lines · Arnd Bergmann

The newly added fts "Teutates" hwmon chip contains a watchdog but fails to link when the watchdog subsystem is disabled:

drivers/hwmon/built-in.o: In function `fts_remove':
:(.text+0x161d8): undefined reference to watchdog_unregister_device' drivers/hwmon/built-in.o: In function fts_probe':
:(.text+0x16cb4): undefined reference to `watchdog_register_device'

Quoted 5 lines

This adds a Kconfig dependency in the same way that the other similar drivers have.

Fixes ec9268ba1a96 ("hwmon: Add driver for FTS BMC chip "Teutates"")

Thanks - folded into original patch.

Guenter

Quoted 19 lines
---
  drivers/hwmon/Kconfig | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
drivers/hwmon/Kconfig +2 -1
index 15479eb15fa2..eaf2f916d48c 100644
@@ -488,7 +488,8 @@ config SENSORS_FSCHMD
 
  config SENSORS_FTSTEUTATES
  	tristate "Fujitsu Technology Solutions sensor chip Teutates"
-	depends on I2C
+	depends on I2C && WATCHDOG
+	select WATCHDOG_CORE
  	help
  	  If you say yes here you get support for the Fujitsu Technology
  	  Solutions (FTS) sensor chip "Teutates" including support for