thermal: Explicitly enable non-changing thermal zone devices
Some thermal zone devices never change their state, so they should be always enabled. Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com> Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20200629122925.21729-9-andrzej.p@collabora.com
This commit is contained in:

committed by
Daniel Lezcano

szülő
7f4957be0d
commit
bbcf90c064
@@ -493,6 +493,12 @@ static int mid_thermal_probe(struct platform_device *pdev)
|
||||
ret = PTR_ERR(pinfo->tzd[i]);
|
||||
goto err;
|
||||
}
|
||||
ret = thermal_zone_device_enable(pinfo->tzd[i]);
|
||||
if (ret) {
|
||||
kfree(td_info);
|
||||
thermal_zone_device_unregister(pinfo->tzd[i]);
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
|
||||
pinfo->pdev = pdev;
|
||||
|
Reference in New Issue
Block a user