From: Alexey Dobriyan Signed-off-by: Alexey Dobriyan Cc: Herbert Xu Signed-off-by: Andrew Morton --- crypto/proc.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff -puN crypto/proc.c~crypto-switch-to-proc_create crypto/proc.c --- a/crypto/proc.c~crypto-switch-to-proc_create +++ a/crypto/proc.c @@ -99,11 +99,7 @@ static const struct file_operations proc 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) _