Commit d5553c26 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Guenter Roeck

hwmon: (aspeed-pwm) add THERMAL dependency

With CONFIG_THERMAL=m, a built-in aspeed pwm tacho driver causes
a link error:

drivers/hwmon/aspeed-pwm-tacho.o: In function `aspeed_pwm_tacho_probe':
aspeed-pwm-tacho.c:(.text+0x7f0): undefined reference to `thermal_of_cooling_device_register'

This adds a dependency similar to what other hwmon drivers use,
ensuring that the aspeed driver cannot be built-in in this
case but has to be a module. With THERMAL=n, we still allow building it.

Fixes: 2d7a548a ("drivers: hwmon: Support for ASPEED PWM/Fan tach")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 1e069dfd
...@@ -343,6 +343,7 @@ config SENSORS_ASB100 ...@@ -343,6 +343,7 @@ config SENSORS_ASB100
config SENSORS_ASPEED config SENSORS_ASPEED
tristate "ASPEED AST2400/AST2500 PWM and Fan tach driver" tristate "ASPEED AST2400/AST2500 PWM and Fan tach driver"
depends on THERMAL || THERMAL=n
select REGMAP select REGMAP
help help
This driver provides support for ASPEED AST2400/AST2500 PWM This driver provides support for ASPEED AST2400/AST2500 PWM
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment