aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/lp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/lp.c')
-rw-r--r--drivers/char/lp.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/char/lp.c b/drivers/char/lp.c
index 1a08e8ea238f..530b19de4a30 100644
--- a/drivers/char/lp.c
+++ b/drivers/char/lp.c
@@ -930,7 +930,6 @@ static int __init lp_init (void)
930out_class: 930out_class:
931 class_destroy(lp_class); 931 class_destroy(lp_class);
932out_devfs: 932out_devfs:
933 devfs_remove("printers");
934 unregister_chrdev(LP_MAJOR, "lp"); 933 unregister_chrdev(LP_MAJOR, "lp");
935 return err; 934 return err;
936} 935}
@@ -978,10 +977,8 @@ static void lp_cleanup_module (void)
978 if (lp_table[offset].dev == NULL) 977 if (lp_table[offset].dev == NULL)
979 continue; 978 continue;
980 parport_unregister_device(lp_table[offset].dev); 979 parport_unregister_device(lp_table[offset].dev);
981 devfs_remove("printers/%d", offset);
982 class_device_destroy(lp_class, MKDEV(LP_MAJOR, offset)); 980 class_device_destroy(lp_class, MKDEV(LP_MAJOR, offset));
983 } 981 }
984 devfs_remove("printers");
985 class_destroy(lp_class); 982 class_destroy(lp_class);
986} 983}
987 984