From f84fead772b39a21961bdee8a140a2d737b5d33c Mon Sep 17 00:00:00 2001 From: myfluxi Date: Mon, 18 Aug 2014 16:18:48 +0200 Subject: [PATCH] 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 --- drivers/thermal/msm_thermal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/thermal/msm_thermal.c b/drivers/thermal/msm_thermal.c index 03c7eda5811..b75904cc470 100644 --- a/drivers/thermal/msm_thermal.c +++ b/drivers/thermal/msm_thermal.c @@ -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);