hwmon: (aspeed-pwm-tacho) Add dependency on ARCH_ASPEED
authorPeter Robinson <pbrobinson@gmail.com>
Fri, 16 Sep 2022 12:09:36 +0000 (13:09 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 19 Sep 2022 13:17:07 +0000 (06:17 -0700)
The SENSORS_ASPEED is part of the Aspeed silicon so it makes
sense to depend on ARCH_ASPEED and for compile testing.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Link: https://lore.kernel.org/r/20220916120936.372591-1-pbrobinson@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/Kconfig

index f604f59..9654576 100644 (file)
@@ -393,6 +393,7 @@ config SENSORS_ASB100
 
 config SENSORS_ASPEED
        tristate "ASPEED AST2400/AST2500 PWM and Fan tach driver"
+       depends on ARCH_ASPEED || COMPILE_TEST
        depends on THERMAL || THERMAL=n
        select REGMAP
        help