aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/util.c')
-rw-r--r--kernel/util.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/kernel/util.c b/kernel/util.c
index ecf23ce..7296517 100644
--- a/kernel/util.c
+++ b/kernel/util.c
@@ -8,11 +8,11 @@
#include "fuse_i.h"
+#include <linux/init.h>
#include <linux/slab.h>
MODULE_AUTHOR("Miklos Szeredi <mszeredi@inf.bme.hu>");
MODULE_DESCRIPTION("Filesystem in Userspace");
-
#ifdef MODULE_LICENSE
MODULE_LICENSE("GPL");
#endif
@@ -27,7 +27,7 @@ void fuse_release_conn(struct fuse_conn *fc)
}
}
-int init_module(void)
+int __init fuse_init(void)
{
int res;
@@ -49,14 +49,17 @@ int init_module(void)
return res;
}
-void cleanup_module(void)
+void __exit fuse_exit(void)
{
- printk(KERN_DEBUG "fuse cleanup\n");
+ printk(KERN_DEBUG "fuse exit\n");
fuse_fs_cleanup();
fuse_dev_cleanup();
}
+module_init(fuse_init);
+module_exit(fuse_exit);
+
/*
* Local Variables:
* indent-tabs-mode: t