aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/params.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/params.c')
-rw-r--r--kernel/params.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/params.c b/kernel/params.c
index 2a4c51487e72..7686417ee00e 100644
--- a/kernel/params.c
+++ b/kernel/params.c
@@ -697,8 +697,18 @@ static struct kset_uevent_ops module_uevent_ops = {
697decl_subsys(module, &module_ktype, &module_uevent_ops); 697decl_subsys(module, &module_ktype, &module_uevent_ops);
698int module_sysfs_initialized; 698int module_sysfs_initialized;
699 699
700static void module_release(struct kobject *kobj)
701{
702 /*
703 * Stupid empty release function to allow the memory for the kobject to
704 * be properly cleaned up. This will not need to be present for 2.6.25
705 * with the upcoming kobject core rework.
706 */
707}
708
700static struct kobj_type module_ktype = { 709static struct kobj_type module_ktype = {
701 .sysfs_ops = &module_sysfs_ops, 710 .sysfs_ops = &module_sysfs_ops,
711 .release = module_release,
702}; 712};
703 713
704/* 714/*