Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1712230 > unrolled thread

[PATCH] hwmon: aspeed: add THERMAL dependency

Started byArnd Bergmann <arnd@arndb.de>
First post2017-08-15 17:00 +0200
Last post2017-08-15 17:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] hwmon: aspeed: add THERMAL dependency Arnd Bergmann <arnd@arndb.de> - 2017-08-15 17:00 +0200
    Re: [PATCH] hwmon: aspeed: add THERMAL dependency Guenter Roeck <linux@roeck-us.net> - 2017-08-15 17:00 +0200

#1712230 — [PATCH] hwmon: aspeed: add THERMAL dependency

FromArnd Bergmann <arnd@arndb.de>
Date2017-08-15 17:00 +0200
Subject[PATCH] hwmon: aspeed: add THERMAL dependency
Message-ID<ueLu1-2Bo-3@gated-at.bofh.it>
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: 2d7a548a3eff ("drivers: hwmon: Support for ASPEED PWM/Fan tach")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/hwmon/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index 5ef2814345ef..5b9a61f766ac 100644
--- a/drivers/hwmon/Kconfig
+++ b/drivers/hwmon/Kconfig
@@ -343,6 +343,7 @@ config SENSORS_ASB100
 
 config SENSORS_ASPEED
 	tristate "ASPEED AST2400/AST2500 PWM and Fan tach driver"
+	depends on THERMAL || THERMAL=n
 	select REGMAP
 	help
 	  This driver provides support for ASPEED AST2400/AST2500 PWM
-- 
2.9.0

[toc] | [next] | [standalone]


#1712232

FromGuenter Roeck <linux@roeck-us.net>
Date2017-08-15 17:00 +0200
Message-ID<ueLu3-2Bo-13@gated-at.bofh.it>
In reply to#1712230
On Tue, Aug 15, 2017 at 04:47:47PM +0200, Arnd Bergmann wrote:
> 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: 2d7a548a3eff ("drivers: hwmon: Support for ASPEED PWM/Fan tach")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Applied to hwmon-next.

Thanks,
Guenter

> ---
>  drivers/hwmon/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
> index 5ef2814345ef..5b9a61f766ac 100644
> --- a/drivers/hwmon/Kconfig
> +++ b/drivers/hwmon/Kconfig
> @@ -343,6 +343,7 @@ config SENSORS_ASB100
>  
>  config SENSORS_ASPEED
>  	tristate "ASPEED AST2400/AST2500 PWM and Fan tach driver"
> +	depends on THERMAL || THERMAL=n
>  	select REGMAP
>  	help
>  	  This driver provides support for ASPEED AST2400/AST2500 PWM
> -- 
> 2.9.0
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web