aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/tty_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/tty_io.c')
-rw-r--r--drivers/char/tty_io.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c
index 0b9a33c0f1bd..b8e03a31a502 100644
--- a/drivers/char/tty_io.c
+++ b/drivers/char/tty_io.c
@@ -2997,7 +2997,6 @@ struct class_device *tty_register_device(struct tty_driver *driver,
2997 */ 2997 */
2998void tty_unregister_device(struct tty_driver *driver, unsigned index) 2998void tty_unregister_device(struct tty_driver *driver, unsigned index)
2999{ 2999{
3000 devfs_remove("%s%d", driver->devfs_name, index + driver->name_base);
3001 class_device_destroy(tty_class, MKDEV(driver->major, driver->minor_start) + index); 3000 class_device_destroy(tty_class, MKDEV(driver->major, driver->minor_start) + index);
3002} 3001}
3003 3002