Skip to content

Commit 1f7da21

Browse files
Amerigo Wanggregkh
authored andcommitted
debugfs: remove module_exit()
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>
1 parent 345279b commit 1f7da21

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

‎fs/debugfs/inode.c‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
*
1414
*/
1515

16-
/* uncomment to get debug messages from the debug filesystem, ah the irony. */
17-
/* #define DEBUG */
18-
1916
#include <linux/module.h>
2017
#include <linux/fs.h>
2118
#include <linux/mount.h>
@@ -540,17 +537,5 @@ static int __init debugfs_init(void)
540537

541538
return retval;
542539
}
543-
544-
static void __exit debugfs_exit(void)
545-
{
546-
debugfs_registered = false;
547-
548-
simple_release_fs(&debugfs_mount, &debugfs_mount_count);
549-
unregister_filesystem(&debug_fs_type);
550-
kobject_put(debug_kobj);
551-
}
552-
553540
core_initcall(debugfs_init);
554-
module_exit(debugfs_exit);
555-
MODULE_LICENSE("GPL");
556541

0 commit comments

Comments
 (0)