c
// Assume there is a list that tracks active thermal zone devices
1 void thermal_debug_tz_remove(struct thermal_zone_device *tz)
2 {
3     if (!is_thermal_zone_device_active(tz))
4         return;
5 
6     struct thermal_debugfs *thermal_dbg = tz->debugfs;
7     // ... rest of the code ...
