Commit 1f7da214 authored by Amerigo Wang's avatar Amerigo Wang Committed by Greg Kroah-Hartman

debugfs: remove module_exit()

debugfs can't be a module, so module_exit() is meaningless for it.
Signed-off-by: default avatarWANG Cong <amwang@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 345279bc
...@@ -13,9 +13,6 @@ ...@@ -13,9 +13,6 @@
* *
*/ */
/* uncomment to get debug messages from the debug filesystem, ah the irony. */
/* #define DEBUG */
#include <linux/module.h> #include <linux/module.h>
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/mount.h> #include <linux/mount.h>
...@@ -540,17 +537,5 @@ static int __init debugfs_init(void) ...@@ -540,17 +537,5 @@ static int __init debugfs_init(void)
return retval; return retval;
} }
static void __exit debugfs_exit(void)
{
debugfs_registered = false;
simple_release_fs(&debugfs_mount, &debugfs_mount_count);
unregister_filesystem(&debug_fs_type);
kobject_put(debug_kobj);
}
core_initcall(debugfs_init); core_initcall(debugfs_init);
module_exit(debugfs_exit);
MODULE_LICENSE("GPL");
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