]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] umem cleanup
authorAlexander Viro <viro@math.psu.edu>
Wed, 4 Dec 2002 04:39:39 +0000 (20:39 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Wed, 4 Dec 2002 04:39:39 +0000 (20:39 -0800)
switched to devfs_remove(), killed gratitious devfs_handle_t variable.

drivers/block/umem.c

index bd30bcefe9867a177edf36ff360e19211fbe2297..b6ab7ba0b5b1768df46d5f3cce2000f6b097ad26 100644 (file)
@@ -102,10 +102,6 @@ static int major_nr;
 #include <linux/blk.h>
 #include <linux/blkpg.h>
 
-
-static devfs_handle_t devfs_handle;      /*  For the directory */
-
-
 struct cardinfo {
        int             card_number;
        struct pci_dev  *dev;
@@ -1160,7 +1156,7 @@ int __init mm_init(void)
                if (!mm_gendisk[i])
                        goto out;
        }
-       devfs_handle = devfs_mk_dir(NULL, "umem", NULL);
+       devfs_mk_dir(NULL, "umem", NULL);
 
        for (i = 0; i < num_cards; i++) {
                struct gendisk *disk = mm_gendisk[i];
@@ -1201,9 +1197,7 @@ void __exit mm_cleanup(void)
                del_gendisk(mm_gendisk[i]);
                put_disk(mm_gendisk[i]);
        }
-       if (devfs_handle)
-               devfs_unregister(devfs_handle);
-       devfs_handle = NULL;
+       devfs_remove("umem");
 
        pci_unregister_driver(&mm_pci_driver);