diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c index 7995f433799f..0387a2f105ce 100644 --- a/drivers/thermal/of-thermal.c +++ b/drivers/thermal/of-thermal.c @@ -1021,7 +1021,6 @@ void thermal_zone_of_sensor_unregister(struct device *dev, pos_tzd->ops->get_temp = NULL; pos_tzd->ops->get_trend = NULL; pos_tzd->ops->set_emul_temp = NULL; - pos_tzd->ops = NULL; mutex_unlock(&pos_tzd->lock); } kfree(sens_param->tz_list);