mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-05 22:25:16 +00:00
keys: switch to proc_create()
Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru> Cc: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
70a5bb72b5
commit
da91d2ef9f
1 changed files with 2 additions and 6 deletions
|
@ -70,19 +70,15 @@ static int __init key_proc_init(void)
|
|||
struct proc_dir_entry *p;
|
||||
|
||||
#ifdef CONFIG_KEYS_DEBUG_PROC_KEYS
|
||||
p = create_proc_entry("keys", 0, NULL);
|
||||
p = proc_create("keys", 0, NULL, &proc_keys_fops);
|
||||
if (!p)
|
||||
panic("Cannot create /proc/keys\n");
|
||||
|
||||
p->proc_fops = &proc_keys_fops;
|
||||
#endif
|
||||
|
||||
p = create_proc_entry("key-users", 0, NULL);
|
||||
p = proc_create("key-users", 0, NULL, &proc_key_users_fops);
|
||||
if (!p)
|
||||
panic("Cannot create /proc/key-users\n");
|
||||
|
||||
p->proc_fops = &proc_key_users_fops;
|
||||
|
||||
return 0;
|
||||
|
||||
} /* end key_proc_init() */
|
||||
|
|
Loading…
Add table
Reference in a new issue