Commit e1675231 authored by Alexey Dobriyan's avatar Alexey Dobriyan

proc: proc_sys_root tweak

Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
parent 300b994b
...@@ -395,10 +395,10 @@ static struct dentry_operations proc_sys_dentry_operations = { ...@@ -395,10 +395,10 @@ static struct dentry_operations proc_sys_dentry_operations = {
.d_compare = proc_sys_compare, .d_compare = proc_sys_compare,
}; };
static struct proc_dir_entry *proc_sys_root;
int proc_sys_init(void) int proc_sys_init(void)
{ {
struct proc_dir_entry *proc_sys_root;
proc_sys_root = proc_mkdir("sys", NULL); proc_sys_root = proc_mkdir("sys", NULL);
proc_sys_root->proc_iops = &proc_sys_dir_operations; proc_sys_root->proc_iops = &proc_sys_dir_operations;
proc_sys_root->proc_fops = &proc_sys_dir_file_operations; proc_sys_root->proc_fops = &proc_sys_dir_file_operations;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment