Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c39afb3 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drivers: thermal: don't reset ops pointer in of-thermal sensor unregister"

parents 5277fb38 9b7dfe02
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);