|
@@ -697,8 +697,18 @@ static struct kset_uevent_ops module_uevent_ops = {
|
|
|
decl_subsys(module, &module_ktype, &module_uevent_ops);
|
|
|
int module_sysfs_initialized;
|
|
|
|
|
|
+static void module_release(struct kobject *kobj)
|
|
|
+{
|
|
|
+ /*
|
|
|
+ * Stupid empty release function to allow the memory for the kobject to
|
|
|
+ * be properly cleaned up. This will not need to be present for 2.6.25
|
|
|
+ * with the upcoming kobject core rework.
|
|
|
+ */
|
|
|
+}
|
|
|
+
|
|
|
static struct kobj_type module_ktype = {
|
|
|
.sysfs_ops = &module_sysfs_ops,
|
|
|
+ .release = module_release,
|
|
|
};
|
|
|
|
|
|
/*
|