thermal_of_zone_unregister
thermal_of_zone_unregister(tz);
thermal_of_zone_unregister(*(struct thermal_zone_device **)res);