mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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: 33140e668b
("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
This commit is contained in:
parent
5368084c39
commit
5055fadfa7
1 changed files with 1 additions and 1 deletions
|
@ -1267,7 +1267,7 @@ static int mtk_thermal_probe(struct platform_device *pdev)
|
|||
|
||||
mtk_thermal_turn_on_buffer(mt, apmixed_base);
|
||||
|
||||
if (mt->conf->version != MTK_THERMAL_V2)
|
||||
if (mt->conf->version != MTK_THERMAL_V1)
|
||||
mtk_thermal_release_periodic_ts(mt, auxadc_base);
|
||||
|
||||
if (mt->conf->version == MTK_THERMAL_V1)
|
||||
|
|
Loading…
Add table
Reference in a new issue