diff options
Diffstat (limited to 'net/netrom/sysctl_net_netrom.c')
-rw-r--r-- | net/netrom/sysctl_net_netrom.c | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/net/netrom/sysctl_net_netrom.c b/net/netrom/sysctl_net_netrom.c index 2ea68da01fb8..34c96c9674df 100644 --- a/net/netrom/sysctl_net_netrom.c +++ b/net/netrom/sysctl_net_netrom.c | |||
@@ -170,29 +170,15 @@ static ctl_table nr_table[] = { | |||
170 | { .ctl_name = 0 } | 170 | { .ctl_name = 0 } |
171 | }; | 171 | }; |
172 | 172 | ||
173 | static ctl_table nr_dir_table[] = { | 173 | static struct ctl_path nr_path[] = { |
174 | { | 174 | { .procname = "net", .ctl_name = CTL_NET, }, |
175 | .ctl_name = NET_NETROM, | 175 | { .procname = "netrom", .ctl_name = NET_NETROM, }, |
176 | .procname = "netrom", | 176 | { } |
177 | .mode = 0555, | ||
178 | .child = nr_table | ||
179 | }, | ||
180 | { .ctl_name = 0 } | ||
181 | }; | ||
182 | |||
183 | static ctl_table nr_root_table[] = { | ||
184 | { | ||
185 | .ctl_name = CTL_NET, | ||
186 | .procname = "net", | ||
187 | .mode = 0555, | ||
188 | .child = nr_dir_table | ||
189 | }, | ||
190 | { .ctl_name = 0 } | ||
191 | }; | 177 | }; |
192 | 178 | ||
193 | void __init nr_register_sysctl(void) | 179 | void __init nr_register_sysctl(void) |
194 | { | 180 | { |
195 | nr_table_header = register_sysctl_table(nr_root_table); | 181 | nr_table_header = register_sysctl_paths(nr_path, nr_table); |
196 | } | 182 | } |
197 | 183 | ||
198 | void nr_unregister_sysctl(void) | 184 | void nr_unregister_sysctl(void) |