diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2009-08-23 15:11:36 -0400 |
---|---|---|
committer | Vlad Yasevich <vladislav.yasevich@hp.com> | 2009-09-04 18:20:58 -0400 |
commit | d71a09ed555e52299b5d3ad8945bdf84f65423a6 (patch) | |
tree | 7b2287417fdcd6c65a00942f8b914f9681b4ebf1 /net | |
parent | dadb50cc1ada2906594df83d991f0bc388039bb6 (diff) |
sctp: use proc_create()
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/sctp/proc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sctp/proc.c b/net/sctp/proc.c index f268910620be..d093cbfeaac4 100644 --- a/net/sctp/proc.c +++ b/net/sctp/proc.c | |||
@@ -512,10 +512,8 @@ int __init sctp_remaddr_proc_init(void) | |||
512 | { | 512 | { |
513 | struct proc_dir_entry *p; | 513 | struct proc_dir_entry *p; |
514 | 514 | ||
515 | p = create_proc_entry("remaddr", S_IRUGO, proc_net_sctp); | 515 | p = proc_create("remaddr", S_IRUGO, proc_net_sctp, &sctp_remaddr_seq_fops); |
516 | if (!p) | 516 | if (!p) |
517 | return -ENOMEM; | 517 | return -ENOMEM; |
518 | p->proc_fops = &sctp_remaddr_seq_fops; | ||
519 | |||
520 | return 0; | 518 | return 0; |
521 | } | 519 | } |