diff options
Diffstat (limited to 'kernel/configs.c')
-rw-r--r-- | kernel/configs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/configs.c b/kernel/configs.c index e84d3f9c6c7b..d3a4b82a8a96 100644 --- a/kernel/configs.c +++ b/kernel/configs.c | |||
@@ -79,8 +79,7 @@ static int __init ikconfig_init(void) | |||
79 | struct proc_dir_entry *entry; | 79 | struct proc_dir_entry *entry; |
80 | 80 | ||
81 | /* create the current config file */ | 81 | /* create the current config file */ |
82 | entry = create_proc_entry("config.gz", S_IFREG | S_IRUGO, | 82 | entry = create_proc_entry("config.gz", S_IFREG | S_IRUGO, NULL); |
83 | &proc_root); | ||
84 | if (!entry) | 83 | if (!entry) |
85 | return -ENOMEM; | 84 | return -ENOMEM; |
86 | 85 | ||
@@ -95,7 +94,7 @@ static int __init ikconfig_init(void) | |||
95 | 94 | ||
96 | static void __exit ikconfig_cleanup(void) | 95 | static void __exit ikconfig_cleanup(void) |
97 | { | 96 | { |
98 | remove_proc_entry("config.gz", &proc_root); | 97 | remove_proc_entry("config.gz", NULL); |
99 | } | 98 | } |
100 | 99 | ||
101 | module_init(ikconfig_init); | 100 | module_init(ikconfig_init); |