aboutsummaryrefslogtreecommitdiffstats
path: root/net/netrom
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-01-09 03:30:05 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:01:07 -0500
commitb5ccd792fa413f9336273cb8fa3b9dd3a7ec1735 (patch)
tree64b23972fdf667baa74a0895bf403b22eb7de86c /net/netrom
parentcb7928a528264a69b29b6001b490b64607ed0557 (diff)
[NET]: Simple ctl_table to ctl_path conversions.
This patch includes many places, that only required replacing the ctl_table-s with appropriate ctl_paths and call register_sysctl_paths(). Nothing special was done with them. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netrom')
-rw-r--r--net/netrom/sysctl_net_netrom.c24
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
173static ctl_table nr_dir_table[] = { 173static 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
183static 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
193void __init nr_register_sysctl(void) 179void __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
198void nr_unregister_sysctl(void) 184void nr_unregister_sysctl(void)