remove "struct subsystem" as it is no longer needed
We need to work on cleaning up the relationship between kobjects, ksets and ktypes. The removal of 'struct subsystem' is the first step of this, especially as it is not really needed at all. Thanks to Kay for fixing the bugs in this patch. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
@@ -691,6 +691,7 @@ static struct kset_uevent_ops module_uevent_ops = {
|
||||
};
|
||||
|
||||
decl_subsys(module, &module_ktype, &module_uevent_ops);
|
||||
int module_sysfs_initialized;
|
||||
|
||||
static struct kobj_type module_ktype = {
|
||||
.sysfs_ops = &module_sysfs_ops,
|
||||
@@ -709,6 +710,7 @@ static int __init param_sysfs_init(void)
|
||||
__FILE__, __LINE__, ret);
|
||||
return ret;
|
||||
}
|
||||
module_sysfs_initialized = 1;
|
||||
|
||||
param_sysfs_builtin();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user