diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-21 00:15:16 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-26 15:25:07 -0400 |
commit | 8ab5e4c15b53e147c08031a959d9f776823dbe73 (patch) | |
tree | b851d4c1fdbd396379279e4475f7f778a667a208 /drivers/block/paride | |
parent | 7c69ef79741910883d5543caafa06aca3ebadbd1 (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/block/paride')
-rw-r--r-- | drivers/block/paride/pg.c | 5 | ||||
-rw-r--r-- | drivers/block/paride/pt.c | 3 |
2 files changed, 1 insertions, 7 deletions
diff --git a/drivers/block/paride/pg.c b/drivers/block/paride/pg.c index 3d464f767eaf..e6f1614b69c3 100644 --- a/drivers/block/paride/pg.c +++ b/drivers/block/paride/pg.c | |||
@@ -695,13 +695,10 @@ static void __exit pg_exit(void) | |||
695 | 695 | ||
696 | for (unit = 0; unit < PG_UNITS; unit++) { | 696 | for (unit = 0; unit < PG_UNITS; unit++) { |
697 | struct pg *dev = &devices[unit]; | 697 | struct pg *dev = &devices[unit]; |
698 | if (dev->present) { | 698 | if (dev->present) |
699 | class_device_destroy(pg_class, MKDEV(major, unit)); | 699 | class_device_destroy(pg_class, MKDEV(major, unit)); |
700 | devfs_remove("pg/%u", unit); | ||
701 | } | ||
702 | } | 700 | } |
703 | class_destroy(pg_class); | 701 | class_destroy(pg_class); |
704 | devfs_remove("pg"); | ||
705 | unregister_chrdev(major, name); | 702 | unregister_chrdev(major, name); |
706 | 703 | ||
707 | for (unit = 0; unit < PG_UNITS; unit++) { | 704 | for (unit = 0; unit < PG_UNITS; unit++) { |
diff --git a/drivers/block/paride/pt.c b/drivers/block/paride/pt.c index c85bdcb384ae..ea12073c5fb1 100644 --- a/drivers/block/paride/pt.c +++ b/drivers/block/paride/pt.c | |||
@@ -992,12 +992,9 @@ static void __exit pt_exit(void) | |||
992 | for (unit = 0; unit < PT_UNITS; unit++) | 992 | for (unit = 0; unit < PT_UNITS; unit++) |
993 | if (pt[unit].present) { | 993 | if (pt[unit].present) { |
994 | class_device_destroy(pt_class, MKDEV(major, unit)); | 994 | class_device_destroy(pt_class, MKDEV(major, unit)); |
995 | devfs_remove("pt/%d", unit); | ||
996 | class_device_destroy(pt_class, MKDEV(major, unit + 128)); | 995 | class_device_destroy(pt_class, MKDEV(major, unit + 128)); |
997 | devfs_remove("pt/%dn", unit); | ||
998 | } | 996 | } |
999 | class_destroy(pt_class); | 997 | class_destroy(pt_class); |
1000 | devfs_remove("pt"); | ||
1001 | unregister_chrdev(major, name); | 998 | unregister_chrdev(major, name); |
1002 | for (unit = 0; unit < PT_UNITS; unit++) | 999 | for (unit = 0; unit < PT_UNITS; unit++) |
1003 | if (pt[unit].present) | 1000 | if (pt[unit].present) |