|
@@ -1876,11 +1876,6 @@ void thermal_cooling_device_unregister(struct thermal_cooling_device *cdev)
|
|
|
|
|
|
mutex_unlock(&thermal_list_lock);
|
|
mutex_unlock(&thermal_list_lock);
|
|
|
|
|
|
- if (cdev->type[0])
|
|
|
|
- device_remove_file(&cdev->device, &dev_attr_cdev_type);
|
|
|
|
- device_remove_file(&cdev->device, &dev_attr_max_state);
|
|
|
|
- device_remove_file(&cdev->device, &dev_attr_cur_state);
|
|
|
|
-
|
|
|
|
release_idr(&thermal_cdev_idr, &thermal_idr_lock, cdev->id);
|
|
release_idr(&thermal_cdev_idr, &thermal_idr_lock, cdev->id);
|
|
device_unregister(&cdev->device);
|
|
device_unregister(&cdev->device);
|
|
return;
|
|
return;
|