projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dadb50c
)
sctp: use proc_create()
author
Alexey Dobriyan
<adobriyan@gmail.com>
Sun, 23 Aug 2009 19:11:36 +0000
(23:11 +0400)
committer
Vlad 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
patch
|
blob
|
blame
|
history
diff --git
a/net/sctp/proc.c
b/net/sctp/proc.c
index f268910620be55d3b7122835fcd3b2ebe629b28f..d093cbfeaac449855fcb89fcb87fe74daa523d90 100644
(file)
--- a/
net/sctp/proc.c
+++ b/
net/sctp/proc.c
@@
-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;
}