Messages in this thread Patch in this message | | | From | Richard Weinberger <> | Subject | [PATCH v2] ramfs: Remove module leftovers | Date | Mon, 10 Oct 2011 12:54:39 +0200 |
| |
Since ramfs is hard-selected to "y", the module leftovers make no sense.
Signed-off-by: Richard Weinberger <richard@nod.at> --- fs/ramfs/inode.c | 12 +----------- 1 files changed, 1 insertions(+), 11 deletions(-)
diff --git a/fs/ramfs/inode.c b/fs/ramfs/inode.c index eacb166..148fdf6 100644 --- a/fs/ramfs/inode.c +++ b/fs/ramfs/inode.c @@ -23,7 +23,6 @@ * caches is sufficient. */ -#include <linux/module.h> #include <linux/fs.h> #include <linux/pagemap.h> #include <linux/highmem.h> @@ -288,14 +287,7 @@ static int __init init_ramfs_fs(void) { return register_filesystem(&ramfs_fs_type); } - -static void __exit exit_ramfs_fs(void) -{ - unregister_filesystem(&ramfs_fs_type); -} - -module_init(init_ramfs_fs) -module_exit(exit_ramfs_fs) +device_initcall(init_ramfs_fs); int __init init_rootfs(void) { @@ -311,5 +303,3 @@ int __init init_rootfs(void) return err; } - -MODULE_LICENSE("GPL"); -- 1.7.7
| |