thermal/drivers/mediatek: Fix probe for THERMAL_V2
authorMarkus Schneider-Pargmann <msp@baylibre.com>
Mon, 18 Sep 2023 10:07:06 +0000 (12:07 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 17 Oct 2023 09:16:01 +0000 (11:16 +0200)
commit5055fadfa7e16f2427d5b3c40b2bf563ddfdab22
tree32280416113408fdfca0775adf6e6bdb65023f74
parent5368084c39369f31ef026565b676791b5b38e6a5
thermal/drivers/mediatek: Fix probe for THERMAL_V2

Fix the probe function to call mtk_thermal_release_periodic_ts for
everything != MTK_THERMAL_V1. This was accidentally changed from V1
to V2 in the original patch.

Reported-by: Frank Wunderlich <frank-w@public-files.de>
Closes: https://lore.kernel.org/lkml/B0B3775B-B8D1-4284-814F-4F41EC22F532@public-files.de/
Reported-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Closes: https://lore.kernel.org/lkml/07a569b9-e691-64ea-dd65-3b49842af33d@linaro.org/
Fixes: 33140e668b10 ("thermal/drivers/mediatek: Control buffer enablement tweaks")
Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230918100706.1229239-1-msp@baylibre.com
drivers/thermal/mediatek/auxadc_thermal.c