diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-03-30 13:13:39 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-04-09 14:13:09 -0400 |
commit | 5a787a682047fbf5d250b0c2aed572fb6b7104d6 (patch) | |
tree | 32ae84a90b7e58fdaa7f9ec777d99cf31ab1aecb /drivers/staging | |
parent | 895b5599ba20cb663af9281050dc83cd7ae91843 (diff) | |
download | linux-5a787a682047fbf5d250b0c2aed572fb6b7104d6.tar.gz linux-5a787a682047fbf5d250b0c2aed572fb6b7104d6.tar.bz2 linux-5a787a682047fbf5d250b0c2aed572fb6b7104d6.zip |
rtl8192u: don't play with reassigning ->proc_fops, just use proc_create()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/rtl8192u/ieee80211/proc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/staging/rtl8192u/ieee80211/proc.c b/drivers/staging/rtl8192u/ieee80211/proc.c index 6eda928e4090..54026a412ca4 100644 --- a/drivers/staging/rtl8192u/ieee80211/proc.c +++ b/drivers/staging/rtl8192u/ieee80211/proc.c @@ -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); } |