提交 d71a09ed 编写于 作者: A Alexey Dobriyan 提交者: Vlad Yasevich

sctp: use proc_create()

create_proc_entry() is deprecated (not formally, though).
Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
上级 dadb50cc
...@@ -512,10 +512,8 @@ int __init sctp_remaddr_proc_init(void) ...@@ -512,10 +512,8 @@ int __init sctp_remaddr_proc_init(void)
{ {
struct proc_dir_entry *p; struct proc_dir_entry *p;
p = create_proc_entry("remaddr", S_IRUGO, proc_net_sctp); p = proc_create("remaddr", S_IRUGO, proc_net_sctp, &sctp_remaddr_seq_fops);
if (!p) if (!p)
return -ENOMEM; return -ENOMEM;
p->proc_fops = &sctp_remaddr_seq_fops;
return 0; return 0;
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册