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);