From: Alexey Dobriyan Date: Tue, 29 Apr 2008 08:01:27 +0000 (-0700) Subject: keys: switch to proc_create() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=da91d2ef9fe4fd84cc0a8a729201d38e40ac9f2e;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git keys: switch to proc_create() Signed-off-by: Alexey Dobriyan Cc: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/security/keys/proc.c b/security/keys/proc.c index 694126003ed..e54679b848c 100644 --- a/security/keys/proc.c +++ b/security/keys/proc.c @@ -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() */