From: Alexey Dobriyan Date: Wed, 5 Mar 2008 11:27:51 +0000 (+0800) Subject: [CRYPTO] api: Switch to proc_create() X-Git-Tag: firefly_0821_release~21597^2~19 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=607424d8583365418a337aa51e83403c8bd213ed;p=firefly-linux-kernel-4.4.55.git [CRYPTO] api: Switch to proc_create() Signed-off-by: Alexey Dobriyan Signed-off-by: Herbert Xu --- diff --git a/crypto/proc.c b/crypto/proc.c index 3d73323ff79b..e482ab68a7ce 100644 --- a/crypto/proc.c +++ b/crypto/proc.c @@ -99,11 +99,7 @@ static const struct file_operations proc_crypto_ops = { void __init crypto_init_proc(void) { - struct proc_dir_entry *proc; - - proc = create_proc_entry("crypto", 0, NULL); - if (proc) - proc->proc_fops = &proc_crypto_ops; + proc_create("crypto", 0, NULL, &proc_crypto_ops); } void __exit crypto_exit_proc(void)