aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/ppdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/ppdev.c')
-rw-r--r--drivers/char/ppdev.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/char/ppdev.c b/drivers/char/ppdev.c
index ba350799405c..c8a2eb1a558f 100644
--- a/drivers/char/ppdev.c
+++ b/drivers/char/ppdev.c
@@ -770,7 +770,7 @@ static struct parport_driver pp_driver = {
770 770
771static int __init ppdev_init (void) 771static int __init ppdev_init (void)
772{ 772{
773 int i, err = 0; 773 int err = 0;
774 774
775 if (register_chrdev (PP_MAJOR, CHRDEV, &pp_fops)) { 775 if (register_chrdev (PP_MAJOR, CHRDEV, &pp_fops)) {
776 printk (KERN_WARNING CHRDEV ": unable to get major %d\n", 776 printk (KERN_WARNING CHRDEV ": unable to get major %d\n",
@@ -791,9 +791,6 @@ static int __init ppdev_init (void)
791 goto out; 791 goto out;
792 792
793out_class: 793out_class:
794 for (i = 0; i < PARPORT_MAX; i++)
795 devfs_remove("parports/%d", i);
796 devfs_remove("parports");
797 class_destroy(ppdev_class); 794 class_destroy(ppdev_class);
798out_chrdev: 795out_chrdev:
799 unregister_chrdev(PP_MAJOR, CHRDEV); 796 unregister_chrdev(PP_MAJOR, CHRDEV);
@@ -803,12 +800,8 @@ out:
803 800
804static void __exit ppdev_cleanup (void) 801static void __exit ppdev_cleanup (void)
805{ 802{
806 int i;
807 /* Clean up all parport stuff */ 803 /* Clean up all parport stuff */
808 for (i = 0; i < PARPORT_MAX; i++)
809 devfs_remove("parports/%d", i);
810 parport_unregister_driver(&pp_driver); 804 parport_unregister_driver(&pp_driver);
811 devfs_remove("parports");
812 class_destroy(ppdev_class); 805 class_destroy(ppdev_class);
813 unregister_chrdev (PP_MAJOR, CHRDEV); 806 unregister_chrdev (PP_MAJOR, CHRDEV);
814} 807}