From: Al Viro Date: Sat, 30 Mar 2013 17:13:39 +0000 (-0400) Subject: rtl8192u: don't play with reassigning ->proc_fops, just use proc_create() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5a787a682047fbf5d250b0c2aed572fb6b7104d6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git rtl8192u: don't play with reassigning ->proc_fops, just use proc_create() Signed-off-by: Al Viro --- 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); }