rtl8192u: don't play with reassigning ->proc_fops, just use proc_create()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 30 Mar 2013 17:13:39 +0000 (13:13 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 9 Apr 2013 18:13:09 +0000 (14:13 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/staging/rtl8192u/ieee80211/proc.c

index 6eda928e4090559c74d82fb3e2bbd52cb2f970ab..54026a412ca4997bb67149085ae86b4e42cab4e0 100644 (file)
@@ -108,9 +108,5 @@ static 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);
 }