void attribute_container_remove_device (struct device * dev, void (*fn) struct attribute_container *, struct device *, struct class_device *);
This routine triggers device removal. If fn is NULL, then it is simply done via class_device_unregister (note that if something still has a reference to the classdev, then the memory occupied will not be freed until the classdev is released). If you want a
This routine triggers device removal. If fn is NULL, then it is simply done via class_device_unregister (note that if something still has a reference to the classdev, then the memory occupied will not be freed until the classdev is released). If you want a
remove from visibility and then delete the device, then you should use this routine with a fn that calls class_device_del and then use attribute_container_device_trigger to do the final put on the classdev.