mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-14 17:14:09 +00:00
thermal: allow spear-thermal driver to be a module
When the thermal subsystem is a loadable module, the spear driver fails to build: drivers/thermal/built-in.o: In function `spear_thermal_exit': spear_thermal.c:(.text+0xf8): undefined reference to `thermal_zone_device_unregister' drivers/thermal/built-in.o: In function `spear_thermal_probe': spear_thermal.c:(.text+0x230): undefined reference to `thermal_zone_device_register' This changes the symbol to a tristate, so Kconfig can track the dependency correctly. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
This commit is contained in:
parent
d612c64d1f
commit
4d2f1794c0
@ -195,7 +195,7 @@ config IMX_THERMAL
|
|||||||
passive trip is crossed.
|
passive trip is crossed.
|
||||||
|
|
||||||
config SPEAR_THERMAL
|
config SPEAR_THERMAL
|
||||||
bool "SPEAr thermal sensor driver"
|
tristate "SPEAr thermal sensor driver"
|
||||||
depends on PLAT_SPEAR || COMPILE_TEST
|
depends on PLAT_SPEAR || COMPILE_TEST
|
||||||
depends on OF
|
depends on OF
|
||||||
help
|
help
|
||||||
|
Loading…
x
Reference in New Issue
Block a user