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

[PATCH] ide cleanup

	switched to devfs_remove(), killed gratitious devfs_handle_t variable.
parent e2d115ec
...@@ -2346,11 +2346,9 @@ EXPORT_SYMBOL(ide_fops); ...@@ -2346,11 +2346,9 @@ EXPORT_SYMBOL(ide_fops);
/* /*
* Probe module * Probe module
*/ */
devfs_handle_t ide_devfs_handle;
EXPORT_SYMBOL(ide_lock); EXPORT_SYMBOL(ide_lock);
EXPORT_SYMBOL(ide_probe); EXPORT_SYMBOL(ide_probe);
EXPORT_SYMBOL(ide_devfs_handle);
struct bus_type ide_bus_type = { struct bus_type ide_bus_type = {
.name = "ide", .name = "ide",
...@@ -2364,7 +2362,7 @@ int __init ide_init (void) ...@@ -2364,7 +2362,7 @@ int __init ide_init (void)
static char banner_printed; static char banner_printed;
if (!banner_printed) { if (!banner_printed) {
printk(KERN_INFO "Uniform Multi-Platform E-IDE driver " REVISION "\n"); printk(KERN_INFO "Uniform Multi-Platform E-IDE driver " REVISION "\n");
ide_devfs_handle = devfs_mk_dir(NULL, "ide", NULL); devfs_mk_dir(NULL, "ide", NULL);
system_bus_speed = ide_system_bus_speed(); system_bus_speed = ide_system_bus_speed();
banner_printed = 1; banner_printed = 1;
} }
...@@ -2420,7 +2418,7 @@ void cleanup_module (void) ...@@ -2420,7 +2418,7 @@ void cleanup_module (void)
#ifdef CONFIG_PROC_FS #ifdef CONFIG_PROC_FS
proc_ide_destroy(); proc_ide_destroy();
#endif #endif
devfs_unregister (ide_devfs_handle); devfs_remove("ide");
bus_unregister(&ide_bus_type); bus_unregister(&ide_bus_type);
} }
......
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