c
void thermal_debug_cdev_remove(struct thermal_cooling_device *cdev)
{
    if (!cdev) {
        printk(KERN_ERR "thermal_debug_cdev_remove: cdev is NULL\n");
        return;
    }
    struct thermal_debugfs *thermal_dbg = cdev->debugfs;
    // Rest of the function remains the same
}
