Commit da91d2ef authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds

keys: switch to proc_create()

Signed-off-by: default avatarAlexey Dobriyan <adobriyan@sw.ru>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 70a5bb72
...@@ -70,19 +70,15 @@ static int __init key_proc_init(void) ...@@ -70,19 +70,15 @@ static int __init key_proc_init(void)
struct proc_dir_entry *p; struct proc_dir_entry *p;
#ifdef CONFIG_KEYS_DEBUG_PROC_KEYS #ifdef CONFIG_KEYS_DEBUG_PROC_KEYS
p = create_proc_entry("keys", 0, NULL); p = proc_create("keys", 0, NULL, &proc_keys_fops);
if (!p) if (!p)
panic("Cannot create /proc/keys\n"); panic("Cannot create /proc/keys\n");
p->proc_fops = &proc_keys_fops;
#endif #endif
p = create_proc_entry("key-users", 0, NULL); p = proc_create("key-users", 0, NULL, &proc_key_users_fops);
if (!p) if (!p)
panic("Cannot create /proc/key-users\n"); panic("Cannot create /proc/key-users\n");
p->proc_fops = &proc_key_users_fops;
return 0; return 0;
} /* end key_proc_init() */ } /* end key_proc_init() */
......
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