sctp: use proc_create()
authorAlexey Dobriyan <adobriyan@gmail.com>
Sun, 23 Aug 2009 19:11:36 +0000 (23:11 +0400)
committerVlad Yasevich <vladislav.yasevich@hp.com>
Fri, 4 Sep 2009 22:20:58 +0000 (18:20 -0400)
create_proc_entry() is deprecated (not formally, though).

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
net/sctp/proc.c

index f268910620be55d3b7122835fcd3b2ebe629b28f..d093cbfeaac449855fcb89fcb87fe74daa523d90 100644 (file)
@@ -512,10 +512,8 @@ int __init sctp_remaddr_proc_init(void)
 {
        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)
                return -ENOMEM;
-       p->proc_fops = &sctp_remaddr_seq_fops;
-
        return 0;
 }