Commit 025cfa69 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] umem cleanup

	switched to devfs_remove(), killed gratitious devfs_handle_t variable.
parent 7827cc75
...@@ -102,10 +102,6 @@ static int major_nr; ...@@ -102,10 +102,6 @@ static int major_nr;
#include <linux/blk.h> #include <linux/blk.h>
#include <linux/blkpg.h> #include <linux/blkpg.h>
static devfs_handle_t devfs_handle; /* For the directory */
struct cardinfo { struct cardinfo {
int card_number; int card_number;
struct pci_dev *dev; struct pci_dev *dev;
...@@ -1160,7 +1156,7 @@ int __init mm_init(void) ...@@ -1160,7 +1156,7 @@ int __init mm_init(void)
if (!mm_gendisk[i]) if (!mm_gendisk[i])
goto out; goto out;
} }
devfs_handle = devfs_mk_dir(NULL, "umem", NULL); devfs_mk_dir(NULL, "umem", NULL);
for (i = 0; i < num_cards; i++) { for (i = 0; i < num_cards; i++) {
struct gendisk *disk = mm_gendisk[i]; struct gendisk *disk = mm_gendisk[i];
...@@ -1201,9 +1197,7 @@ void __exit mm_cleanup(void) ...@@ -1201,9 +1197,7 @@ void __exit mm_cleanup(void)
del_gendisk(mm_gendisk[i]); del_gendisk(mm_gendisk[i]);
put_disk(mm_gendisk[i]); put_disk(mm_gendisk[i]);
} }
if (devfs_handle) devfs_remove("umem");
devfs_unregister(devfs_handle);
devfs_handle = NULL;
pci_unregister_driver(&mm_pci_driver); pci_unregister_driver(&mm_pci_driver);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment