diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2019-04-02 12:12:44 -0400 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2019-05-06 08:35:24 -0400 |
commit | 554b3529fe018e74cb5d0d0f476ee793b58b030a (patch) | |
tree | e37418ffd1e338621d4b8b046aca993f662e9429 | |
parent | dc4060a5dc2557e6b5aa813bf5b73677299d62d2 (diff) |
thermal/drivers/core: Remove the module Kconfig's option
The module support for the thermal subsystem makes little sense:
- some subsystems relying on it are not modules, thus forcing the
framework to be compiled in
- it is compiled in for almost every configs, the remaining ones
are a few platforms where I don't see why we can not switch the thermal
to 'y'. The drivers can stay in tristate.
- platforms need the thermal to be ready as soon as possible at boot time
in order to mitigate
Usually the subsystems framework are compiled-in and the plugs are as
module.
Remove the module option. The removal of the module related dead code will
come after this patch gets in or is acked.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Guenter Roeck <groeck@chromium.org>
For mini2440:
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Paul Burton <paul.burton@mips.com> # MIPS part
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
-rw-r--r-- | arch/arm/configs/mini2440_defconfig | 2 | ||||
-rw-r--r-- | arch/arm/configs/pxa_defconfig | 2 | ||||
-rw-r--r-- | arch/mips/configs/ip22_defconfig | 2 | ||||
-rw-r--r-- | arch/mips/configs/ip27_defconfig | 2 | ||||
-rw-r--r-- | arch/unicore32/configs/unicore32_defconfig | 2 | ||||
-rw-r--r-- | drivers/thermal/Kconfig | 4 |
6 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/configs/mini2440_defconfig b/arch/arm/configs/mini2440_defconfig index d95a8059d30b..0cf1c120c4bb 100644 --- a/arch/arm/configs/mini2440_defconfig +++ b/arch/arm/configs/mini2440_defconfig | |||
@@ -152,7 +152,7 @@ CONFIG_SPI_S3C24XX=y | |||
152 | CONFIG_SPI_SPIDEV=y | 152 | CONFIG_SPI_SPIDEV=y |
153 | CONFIG_GPIO_SYSFS=y | 153 | CONFIG_GPIO_SYSFS=y |
154 | CONFIG_SENSORS_LM75=y | 154 | CONFIG_SENSORS_LM75=y |
155 | CONFIG_THERMAL=m | 155 | CONFIG_THERMAL=y |
156 | CONFIG_WATCHDOG=y | 156 | CONFIG_WATCHDOG=y |
157 | CONFIG_S3C2410_WATCHDOG=y | 157 | CONFIG_S3C2410_WATCHDOG=y |
158 | CONFIG_FB=y | 158 | CONFIG_FB=y |
diff --git a/arch/arm/configs/pxa_defconfig b/arch/arm/configs/pxa_defconfig index d4654755b09c..d4f9dda3a52f 100644 --- a/arch/arm/configs/pxa_defconfig +++ b/arch/arm/configs/pxa_defconfig | |||
@@ -387,7 +387,7 @@ CONFIG_SENSORS_LM75=m | |||
387 | CONFIG_SENSORS_LM90=m | 387 | CONFIG_SENSORS_LM90=m |
388 | CONFIG_SENSORS_LM95245=m | 388 | CONFIG_SENSORS_LM95245=m |
389 | CONFIG_SENSORS_NTC_THERMISTOR=m | 389 | CONFIG_SENSORS_NTC_THERMISTOR=m |
390 | CONFIG_THERMAL=m | 390 | CONFIG_THERMAL=y |
391 | CONFIG_WATCHDOG=y | 391 | CONFIG_WATCHDOG=y |
392 | CONFIG_XILINX_WATCHDOG=m | 392 | CONFIG_XILINX_WATCHDOG=m |
393 | CONFIG_SA1100_WATCHDOG=m | 393 | CONFIG_SA1100_WATCHDOG=m |
diff --git a/arch/mips/configs/ip22_defconfig b/arch/mips/configs/ip22_defconfig index ff40fbc2f439..21a1168ae301 100644 --- a/arch/mips/configs/ip22_defconfig +++ b/arch/mips/configs/ip22_defconfig | |||
@@ -228,7 +228,7 @@ CONFIG_SERIAL_IP22_ZILOG=m | |||
228 | # CONFIG_HW_RANDOM is not set | 228 | # CONFIG_HW_RANDOM is not set |
229 | CONFIG_RAW_DRIVER=m | 229 | CONFIG_RAW_DRIVER=m |
230 | # CONFIG_HWMON is not set | 230 | # CONFIG_HWMON is not set |
231 | CONFIG_THERMAL=m | 231 | CONFIG_THERMAL=y |
232 | CONFIG_WATCHDOG=y | 232 | CONFIG_WATCHDOG=y |
233 | CONFIG_INDYDOG=m | 233 | CONFIG_INDYDOG=m |
234 | # CONFIG_VGA_CONSOLE is not set | 234 | # CONFIG_VGA_CONSOLE is not set |
diff --git a/arch/mips/configs/ip27_defconfig b/arch/mips/configs/ip27_defconfig index 81c47e18131b..54db5dedf776 100644 --- a/arch/mips/configs/ip27_defconfig +++ b/arch/mips/configs/ip27_defconfig | |||
@@ -271,7 +271,7 @@ CONFIG_I2C_PARPORT_LIGHT=m | |||
271 | CONFIG_I2C_TAOS_EVM=m | 271 | CONFIG_I2C_TAOS_EVM=m |
272 | CONFIG_I2C_STUB=m | 272 | CONFIG_I2C_STUB=m |
273 | # CONFIG_HWMON is not set | 273 | # CONFIG_HWMON is not set |
274 | CONFIG_THERMAL=m | 274 | CONFIG_THERMAL=y |
275 | CONFIG_MFD_PCF50633=m | 275 | CONFIG_MFD_PCF50633=m |
276 | CONFIG_PCF50633_ADC=m | 276 | CONFIG_PCF50633_ADC=m |
277 | CONFIG_PCF50633_GPIO=m | 277 | CONFIG_PCF50633_GPIO=m |
diff --git a/arch/unicore32/configs/unicore32_defconfig b/arch/unicore32/configs/unicore32_defconfig index aebd01fc28e5..360cc9abcdb0 100644 --- a/arch/unicore32/configs/unicore32_defconfig +++ b/arch/unicore32/configs/unicore32_defconfig | |||
@@ -119,7 +119,7 @@ CONFIG_I2C_PUV3=y | |||
119 | # Hardware Monitoring support | 119 | # Hardware Monitoring support |
120 | #CONFIG_SENSORS_LM75=m | 120 | #CONFIG_SENSORS_LM75=m |
121 | # Generic Thermal sysfs driver | 121 | # Generic Thermal sysfs driver |
122 | #CONFIG_THERMAL=m | 122 | #CONFIG_THERMAL=y |
123 | #CONFIG_THERMAL_HWMON=y | 123 | #CONFIG_THERMAL_HWMON=y |
124 | 124 | ||
125 | # Multimedia support | 125 | # Multimedia support |
diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index 653aa27a25a4..ccf5b9408d7a 100644 --- a/drivers/thermal/Kconfig +++ b/drivers/thermal/Kconfig | |||
@@ -3,7 +3,7 @@ | |||
3 | # | 3 | # |
4 | 4 | ||
5 | menuconfig THERMAL | 5 | menuconfig THERMAL |
6 | tristate "Generic Thermal sysfs driver" | 6 | bool "Generic Thermal sysfs driver" |
7 | help | 7 | help |
8 | Generic Thermal Sysfs driver offers a generic mechanism for | 8 | Generic Thermal Sysfs driver offers a generic mechanism for |
9 | thermal management. Usually it's made up of one or more thermal | 9 | thermal management. Usually it's made up of one or more thermal |
@@ -11,7 +11,7 @@ menuconfig THERMAL | |||
11 | Each thermal zone contains its own temperature, trip points, | 11 | Each thermal zone contains its own temperature, trip points, |
12 | cooling devices. | 12 | cooling devices. |
13 | All platforms with ACPI thermal support can use this driver. | 13 | All platforms with ACPI thermal support can use this driver. |
14 | If you want this support, you should say Y or M here. | 14 | If you want this support, you should say Y here. |
15 | 15 | ||
16 | if THERMAL | 16 | if THERMAL |
17 | 17 | ||