|
@@ -1333,6 +1333,7 @@ int thermal_zone_unbind_cooling_device(struct thermal_zone_device *tz,
|
|
|
return -ENODEV;
|
|
|
|
|
|
unbind:
|
|
|
+ device_remove_file(&tz->device, &pos->weight_attr);
|
|
|
device_remove_file(&tz->device, &pos->attr);
|
|
|
sysfs_remove_link(&tz->device.kobj, pos->name);
|
|
|
release_idr(&tz->idr, &tz->lock, pos->id);
|