diff options
Diffstat (limited to 'net/dccp/sysctl.c')
-rw-r--r-- | net/dccp/sysctl.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/net/dccp/sysctl.c b/net/dccp/sysctl.c index 42348824ee31..607ab71b5a0c 100644 --- a/net/dccp/sysctl.c +++ b/net/dccp/sysctl.c | |||
@@ -98,18 +98,11 @@ static struct ctl_table dccp_default_table[] = { | |||
98 | { } | 98 | { } |
99 | }; | 99 | }; |
100 | 100 | ||
101 | static struct ctl_path dccp_path[] = { | ||
102 | { .procname = "net", }, | ||
103 | { .procname = "dccp", }, | ||
104 | { .procname = "default", }, | ||
105 | { } | ||
106 | }; | ||
107 | |||
108 | static struct ctl_table_header *dccp_table_header; | 101 | static struct ctl_table_header *dccp_table_header; |
109 | 102 | ||
110 | int __init dccp_sysctl_init(void) | 103 | int __init dccp_sysctl_init(void) |
111 | { | 104 | { |
112 | dccp_table_header = register_sysctl_paths(dccp_path, | 105 | dccp_table_header = register_net_sysctl(&init_net, "net/dccp/default", |
113 | dccp_default_table); | 106 | dccp_default_table); |
114 | 107 | ||
115 | return dccp_table_header != NULL ? 0 : -ENOMEM; | 108 | return dccp_table_header != NULL ? 0 : -ENOMEM; |
@@ -118,7 +111,7 @@ int __init dccp_sysctl_init(void) | |||
118 | void dccp_sysctl_exit(void) | 111 | void dccp_sysctl_exit(void) |
119 | { | 112 | { |
120 | if (dccp_table_header != NULL) { | 113 | if (dccp_table_header != NULL) { |
121 | unregister_sysctl_table(dccp_table_header); | 114 | unregister_net_sysctl_table(dccp_table_header); |
122 | dccp_table_header = NULL; | 115 | dccp_table_header = NULL; |
123 | } | 116 | } |
124 | } | 117 | } |