提交 4a6155a4 编写于 作者: A Arnd Bergmann 提交者: Dmitry Torokhov

Input: sun4i-ts - add thermal driver dependency

The sun4i-ts driver has had a dependency on the thermal code
with the addition of the thermal zone sensor support, but this
is not currently enforced in Kconfig, so with TOUCHSCREEN_SUN4I=y,
THERMAL=m and THERMAL_OF=y we get

drivers/built-in.o: In function `sun4i_ts_remove':
:(.text+0x2376f4): undefined reference to `thermal_zone_of_sensor_unregister'
drivers/built-in.o: In function `sun4i_ts_probe':
:(.text+0x237a94): undefined reference to `thermal_zone_of_sensor_register'
:(.text+0x237c00): undefined reference to `thermal_zone_of_sensor_unregister'

We need the dependency on THERMAL in order to ensure that this
driver becomes a loadable module if the thermal support itself
is modular, while the dependency on THERMAL_OF is a runtime
dependency and the driver will still build if it is missing.
It is entirely possible to build sun4i-ts without THERMAL_OF
just to use the hwmon sensors and/or touchscreen.

Fixes: 22369710 ("Input: sun4i-ts - add thermal zone sensor support")
Signed-off-by: NArnd Bergmann <arnd@arndb.de>
[wens@csie.org: Fix description and Kconfig dependencies]
Signed-off-by: NChen-Yu Tsai <wens@csie.org>
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 2523caab
...@@ -943,6 +943,7 @@ config TOUCHSCREEN_SUN4I ...@@ -943,6 +943,7 @@ config TOUCHSCREEN_SUN4I
tristate "Allwinner sun4i resistive touchscreen controller support" tristate "Allwinner sun4i resistive touchscreen controller support"
depends on ARCH_SUNXI || COMPILE_TEST depends on ARCH_SUNXI || COMPILE_TEST
depends on HWMON depends on HWMON
depends on THERMAL || !THERMAL_OF
help help
This selects support for the resistive touchscreen controller This selects support for the resistive touchscreen controller
found on Allwinner sunxi SoCs. found on Allwinner sunxi SoCs.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册