diff options
Diffstat (limited to 'drivers/block/paride/pg.c')
-rw-r--r-- | drivers/block/paride/pg.c | 5 |
1 files changed, 1 insertions, 4 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++) { |