msm: thermal: Check temperature only if probed

This avoids a (harmless) error:

<3>[    0.214144] msm_thermal:msm_thermal_get_freq_table error reading cpufreq table

Change-Id: Ibf8e319751edb49e836b2e207c0075f60b71f44a
Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
This commit is contained in:
myfluxi
2020-11-16 18:35:34 +01:00
committed by Francescodario Cuzzocrea
parent 25c3603d14
commit f84fead772
+3
View File
@@ -1355,6 +1355,9 @@ static void __ref check_temp(struct work_struct *work)
long temp = 0;
int ret = 0;
if (!msm_thermal_probed)
return;
do_therm_reset();
ret = therm_get_temp(msm_thermal_info.sensor_id, THERM_TSENS_ID, &temp);