mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
dadb50cc1a
commit
d71a09ed55
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue