cdev_device_del — inverse of cdev_device_add
void cdev_device_del ( | struct cdev * cdev, |
struct device * dev) ; |
cdev_device_del
is a helper function to call cdev_del and device_del.
It should be used whenever cdev_device_add is used.
If dev->devt is not set it will not remove the cdev and will be equivalent to device_del.