diff options
Diffstat (limited to 'kernel/params.c')
-rw-r--r-- | kernel/params.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/params.c b/kernel/params.c index 1fc4ac746cd8..312172320b4c 100644 --- a/kernel/params.c +++ b/kernel/params.c | |||
@@ -691,6 +691,7 @@ static struct kset_uevent_ops module_uevent_ops = { | |||
691 | }; | 691 | }; |
692 | 692 | ||
693 | decl_subsys(module, &module_ktype, &module_uevent_ops); | 693 | decl_subsys(module, &module_ktype, &module_uevent_ops); |
694 | int module_sysfs_initialized; | ||
694 | 695 | ||
695 | static struct kobj_type module_ktype = { | 696 | static struct kobj_type module_ktype = { |
696 | .sysfs_ops = &module_sysfs_ops, | 697 | .sysfs_ops = &module_sysfs_ops, |
@@ -709,6 +710,7 @@ static int __init param_sysfs_init(void) | |||
709 | __FILE__, __LINE__, ret); | 710 | __FILE__, __LINE__, ret); |
710 | return ret; | 711 | return ret; |
711 | } | 712 | } |
713 | module_sysfs_initialized = 1; | ||
712 | 714 | ||
713 | param_sysfs_builtin(); | 715 | param_sysfs_builtin(); |
714 | 716 | ||