c
void thermal_debug_tz_remove(struct thermal_zone_device *tz)
{
    if (!tz || !tz->debugfs)
        return;

    struct thermal_debugfs *thermal_dbg = tz->debugfs;

    mutex_lock(&thermal_dbg->lock);
    // ... rest of the function
}
