diff options
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index ee7320b4a30e..9fc2314b58d9 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -5611,15 +5611,9 @@ static __exit void md_exit(void) | |||
5611 | { | 5611 | { |
5612 | mddev_t *mddev; | 5612 | mddev_t *mddev; |
5613 | struct list_head *tmp; | 5613 | struct list_head *tmp; |
5614 | int i; | 5614 | |
5615 | blk_unregister_region(MKDEV(MAJOR_NR,0), MAX_MD_DEVS); | 5615 | blk_unregister_region(MKDEV(MAJOR_NR,0), MAX_MD_DEVS); |
5616 | blk_unregister_region(MKDEV(mdp_major,0), MAX_MD_DEVS << MdpMinorShift); | 5616 | blk_unregister_region(MKDEV(mdp_major,0), MAX_MD_DEVS << MdpMinorShift); |
5617 | for (i=0; i < MAX_MD_DEVS; i++) | ||
5618 | devfs_remove("md/%d", i); | ||
5619 | for (i=0; i < MAX_MD_DEVS; i++) | ||
5620 | devfs_remove("md/d%d", i); | ||
5621 | |||
5622 | devfs_remove("md"); | ||
5623 | 5617 | ||
5624 | unregister_blkdev(MAJOR_NR,"md"); | 5618 | unregister_blkdev(MAJOR_NR,"md"); |
5625 | unregister_blkdev(mdp_major, "mdp"); | 5619 | unregister_blkdev(mdp_major, "mdp"); |