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

drivers/s390/block/dasd.c

index e8b9e8daf45a2bb303fbcc4040a8b97f3476501f..c816c0a09e546aff208ab777819d0d9bef39f040 100644 (file)
@@ -194,7 +194,6 @@ dasd_find_disc(dasd_device_t * device)
 /*
  * SECTION: Operations on the device structure.
  */
-static devfs_handle_t dasd_devfs_handle;
 static wait_queue_head_t dasd_init_waitq;
 
 /*
@@ -2189,8 +2188,7 @@ dasd_exit(void)
        dasd_ioctl_exit();
        dasd_gendisk_exit();
        dasd_devmap_exit();
-       if (dasd_devfs_handle)
-               devfs_unregister(dasd_devfs_handle);
+       devfs_remove("dasd");
        if (dasd_debug_area != NULL) {
                debug_unregister(dasd_debug_area);
                dasd_debug_area = NULL;
@@ -2237,8 +2235,7 @@ dasd_init(void)
 
        DBF_EVENT(DBF_EMERG, "%s", "debug area created");
 
-       dasd_devfs_handle = devfs_mk_dir(NULL, "dasd", NULL);
-       if (dasd_devfs_handle < 0) {
+       if (!devfs_mk_dir(NULL, "dasd", NULL)) {
                DBF_EVENT(DBF_ALERT, "%s", "no devfs");
                rc = -ENOSYS;
                goto failed;