]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
proc: proc_sys_root tweak
authorAlexey Dobriyan <adobriyan@gmail.com>
Thu, 2 Oct 2008 20:23:32 +0000 (00:23 +0400)
committerAlexey Dobriyan <adobriyan@gmail.com>
Fri, 10 Oct 2008 00:18:55 +0000 (04:18 +0400)
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
fs/proc/proc_sysctl.c

index f9a8b892718fc2f1a04ce1d169ba1667378832b5..daa5f51e534faeb693a8b2af0afae4dcb6d09cc6 100644 (file)
@@ -395,10 +395,10 @@ static struct dentry_operations proc_sys_dentry_operations = {
        .d_compare      = proc_sys_compare,
 };
 
-static struct proc_dir_entry *proc_sys_root;
-
 int proc_sys_init(void)
 {
+       struct proc_dir_entry *proc_sys_root;
+
        proc_sys_root = proc_mkdir("sys", NULL);
        proc_sys_root->proc_iops = &proc_sys_dir_operations;
        proc_sys_root->proc_fops = &proc_sys_dir_file_operations;