diff options
Diffstat (limited to 'net/x25')
-rw-r--r-- | net/x25/sysctl_net_x25.c | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/net/x25/sysctl_net_x25.c b/net/x25/sysctl_net_x25.c index a59b77f18234..6ebda25c24e9 100644 --- a/net/x25/sysctl_net_x25.c +++ b/net/x25/sysctl_net_x25.c | |||
@@ -84,29 +84,15 @@ static struct ctl_table x25_table[] = { | |||
84 | { 0, }, | 84 | { 0, }, |
85 | }; | 85 | }; |
86 | 86 | ||
87 | static struct ctl_table x25_dir_table[] = { | 87 | static struct ctl_path x25_path[] = { |
88 | { | 88 | { .procname = "net", .ctl_name = CTL_NET, }, |
89 | .ctl_name = NET_X25, | 89 | { .procname = "x25", .ctl_name = NET_X25, }, |
90 | .procname = "x25", | 90 | { } |
91 | .mode = 0555, | ||
92 | .child = x25_table, | ||
93 | }, | ||
94 | { 0, }, | ||
95 | }; | ||
96 | |||
97 | static struct ctl_table x25_root_table[] = { | ||
98 | { | ||
99 | .ctl_name = CTL_NET, | ||
100 | .procname = "net", | ||
101 | .mode = 0555, | ||
102 | .child = x25_dir_table, | ||
103 | }, | ||
104 | { 0, }, | ||
105 | }; | 91 | }; |
106 | 92 | ||
107 | void __init x25_register_sysctl(void) | 93 | void __init x25_register_sysctl(void) |
108 | { | 94 | { |
109 | x25_table_header = register_sysctl_table(x25_root_table); | 95 | x25_table_header = register_sysctl_paths(x25_path, x25_table); |
110 | } | 96 | } |
111 | 97 | ||
112 | void x25_unregister_sysctl(void) | 98 | void x25_unregister_sysctl(void) |