debugfs: remove module_exit()
authorAmerigo Wang <[email protected]>
Tue, 18 Jan 2011 21:09:21 +0000 (13:09 -0800)
committerGreg Kroah-Hartman <[email protected]>
Thu, 3 Feb 2011 23:39:17 +0000 (15:39 -0800)
debugfs can't be a module, so module_exit() is meaningless for it.

Signed-off-by: WANG Cong <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
fs/debugfs/inode.c

index 37a8ca7c12228442022a75f6735bb65cb5930209..d38c88fb63aec3ad8389cbbfa6d3950967702d10 100644 (file)
@@ -13,9 +13,6 @@
  *
  */
 
-/* uncomment to get debug messages from the debug filesystem, ah the irony. */
-/* #define DEBUG */
-
 #include <linux/module.h>
 #include <linux/fs.h>
 #include <linux/mount.h>
@@ -540,17 +537,5 @@ static int __init debugfs_init(void)
 
        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);
-module_exit(debugfs_exit);
-MODULE_LICENSE("GPL");