Commit 7bba1117 authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji

[NET]: Use proc_net_fops_create() for /proc/net/wireless

parent e5f747a1
...@@ -495,15 +495,10 @@ static struct file_operations wireless_seq_fops = { ...@@ -495,15 +495,10 @@ static struct file_operations wireless_seq_fops = {
int __init wireless_proc_init(void) int __init wireless_proc_init(void)
{ {
struct proc_dir_entry *p; if (!proc_net_fops_create("wireless", S_IRUGO, &wireless_seq_fops))
int rc = 0; return -ENOMEM;
p = create_proc_entry("wireless", S_IRUGO, proc_net); return 0;
if (p)
p->proc_fops = &wireless_seq_fops;
else
rc = -ENOMEM;
return rc;
} }
#endif /* CONFIG_PROC_FS */ #endif /* CONFIG_PROC_FS */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment