Skip to content

Commit

Permalink
debugfs: remove module_exit()
Browse files Browse the repository at this point in the history
debugfs can't be a module, so module_exit() is meaningless for it.

Signed-off-by: WANG Cong <amwang@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Amerigo Wang authored and Greg Kroah-Hartman committed Feb 3, 2011
1 parent 345279b commit 1f7da21
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions fs/debugfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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");

0 comments on commit 1f7da21

Please sign in to comment.