Commit d86cde72 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] dasd cleanup

	switched to devfs_remove(), killed gratitious devfs_handle_t variable.
parent ddf1bda1
...@@ -194,7 +194,6 @@ dasd_find_disc(dasd_device_t * device) ...@@ -194,7 +194,6 @@ dasd_find_disc(dasd_device_t * device)
/* /*
* SECTION: Operations on the device structure. * SECTION: Operations on the device structure.
*/ */
static devfs_handle_t dasd_devfs_handle;
static wait_queue_head_t dasd_init_waitq; static wait_queue_head_t dasd_init_waitq;
/* /*
...@@ -2189,8 +2188,7 @@ dasd_exit(void) ...@@ -2189,8 +2188,7 @@ dasd_exit(void)
dasd_ioctl_exit(); dasd_ioctl_exit();
dasd_gendisk_exit(); dasd_gendisk_exit();
dasd_devmap_exit(); dasd_devmap_exit();
if (dasd_devfs_handle) devfs_remove("dasd");
devfs_unregister(dasd_devfs_handle);
if (dasd_debug_area != NULL) { if (dasd_debug_area != NULL) {
debug_unregister(dasd_debug_area); debug_unregister(dasd_debug_area);
dasd_debug_area = NULL; dasd_debug_area = NULL;
...@@ -2237,8 +2235,7 @@ dasd_init(void) ...@@ -2237,8 +2235,7 @@ dasd_init(void)
DBF_EVENT(DBF_EMERG, "%s", "debug area created"); DBF_EVENT(DBF_EMERG, "%s", "debug area created");
dasd_devfs_handle = devfs_mk_dir(NULL, "dasd", NULL); if (!devfs_mk_dir(NULL, "dasd", NULL)) {
if (dasd_devfs_handle < 0) {
DBF_EVENT(DBF_ALERT, "%s", "no devfs"); DBF_EVENT(DBF_ALERT, "%s", "no devfs");
rc = -ENOSYS; rc = -ENOSYS;
goto failed; goto failed;
......
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