public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Patch] debugfs: remove module_exit()
@ 2010-11-09  9:19 Amerigo Wang
  2010-12-01  1:35 ` Greg KH
  0 siblings, 1 reply; 7+ messages in thread
From: Amerigo Wang @ 2010-11-09  9:19 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm, Greg Kroah-Hartman, Amerigo Wang

debugfs can't be a module, so module_exit() is meaningless
for it.

Signed-off-by: WANG Cong <amwang@redhat.com>

---
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
index 37a8ca7..d38c88f 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
@@ -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");
 

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-12-02  4:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-09  9:19 [Patch] debugfs: remove module_exit() Amerigo Wang
2010-12-01  1:35 ` Greg KH
2010-12-01  6:33   ` Cong Wang
2010-12-01 15:56     ` Greg KH
2010-12-02  3:17       ` Cong Wang
2010-12-02  3:59         ` Greg KH
2010-12-02  4:15           ` Cong Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox