aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/ppdev.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2005-06-21 00:15:16 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-06-26 15:25:07 -0400
commit8ab5e4c15b53e147c08031a959d9f776823dbe73 (patch)
treeb851d4c1fdbd396379279e4475f7f778a667a208 /drivers/char/ppdev.c
parent7c69ef79741910883d5543caafa06aca3ebadbd1 (diff)
[PATCH] devfs: Remove devfs_remove() function from the kernel tree
Removes the devfs_remove() function and all callers of it. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
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}