diff options
Diffstat (limited to 'drivers/char/misc.c')
-rw-r--r-- | drivers/char/misc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/char/misc.c b/drivers/char/misc.c index 71e513771048..bf2e49e11cc0 100644 --- a/drivers/char/misc.c +++ b/drivers/char/misc.c | |||
@@ -271,7 +271,6 @@ int misc_deregister(struct miscdevice * misc) | |||
271 | down(&misc_sem); | 271 | down(&misc_sem); |
272 | list_del(&misc->list); | 272 | list_del(&misc->list); |
273 | class_device_destroy(misc_class, MKDEV(MISC_MAJOR, misc->minor)); | 273 | class_device_destroy(misc_class, MKDEV(MISC_MAJOR, misc->minor)); |
274 | devfs_remove(misc->devfs_name); | ||
275 | if (i < DYNAMIC_MINORS && i>0) { | 274 | if (i < DYNAMIC_MINORS && i>0) { |
276 | misc_minors[i>>3] &= ~(1 << (misc->minor & 7)); | 275 | misc_minors[i>>3] &= ~(1 << (misc->minor & 7)); |
277 | } | 276 | } |