Skip to content

Commit d4960de

Browse files
scosugregkh
authored andcommitted
thermal/drivers/mediatek: Fix probe for THERMAL_V2
[ Upstream commit 5055fad ] 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 <[email protected]> Closes: https://lore.kernel.org/lkml/[email protected]/ Reported-by: Daniel Lezcano <[email protected]> Closes: https://lore.kernel.org/lkml/[email protected]/ Fixes: 33140e6 ("thermal/drivers/mediatek: Control buffer enablement tweaks") Signed-off-by: Markus Schneider-Pargmann <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sasha Levin <[email protected]>
1 parent 0fbeb80 commit d4960de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thermal/mediatek/auxadc_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ static int mtk_thermal_probe(struct platform_device *pdev)
12671267

12681268
mtk_thermal_turn_on_buffer(mt, apmixed_base);
12691269

1270-
if (mt->conf->version != MTK_THERMAL_V2)
1270+
if (mt->conf->version != MTK_THERMAL_V1)
12711271
mtk_thermal_release_periodic_ts(mt, auxadc_base);
12721272

12731273
if (mt->conf->version == MTK_THERMAL_V1)

0 commit comments

Comments
 (0)