diff options
author | 2023-03-07 14:37:29 +0100 | |
---|---|---|
committer | 2023-04-01 20:51:45 +0200 | |
commit | 0fb6c6493fa240048e6afa2b810b45007129a4a0 (patch) | |
tree | 067d0cc6bcfd0c07ce243ddb090907476d4e4240 | |
parent | thermal/drivers/db8500: Use driver dev instead of tz->device (diff) | |
download | wireguard-linux-0fb6c6493fa240048e6afa2b810b45007129a4a0.tar.xz wireguard-linux-0fb6c6493fa240048e6afa2b810b45007129a4a0.zip |
thermal/drivers/stm: Don't set no_hwmon to false
The thermal->tzp->no_hwmon parameter is only used when calling
thermal_zone_device_register().
Setting it to 'false' before calling thermal_add_hwmon_sysfs() has no
effect.
Remove the call and again prevent the drivers to access the thermal
internals.
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230307133735.90772-6-daniel.lezcano@linaro.org
-rw-r--r-- | drivers/thermal/st/stm_thermal.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/thermal/st/stm_thermal.c b/drivers/thermal/st/stm_thermal.c index 6f2bad8ef82f..903fcf1763f1 100644 --- a/drivers/thermal/st/stm_thermal.c +++ b/drivers/thermal/st/stm_thermal.c @@ -558,7 +558,6 @@ static int stm_thermal_probe(struct platform_device *pdev) * Thermal_zone doesn't enable hwmon as default, * enable it here */ - sensor->th_dev->tzp->no_hwmon = false; ret = thermal_add_hwmon_sysfs(sensor->th_dev); if (ret) goto err_tz; |