diff options
Diffstat (limited to 'net/rose/sysctl_net_rose.c')
-rw-r--r-- | net/rose/sysctl_net_rose.c | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/net/rose/sysctl_net_rose.c b/net/rose/sysctl_net_rose.c index 455b0555a669..20be3485a97f 100644 --- a/net/rose/sysctl_net_rose.c +++ b/net/rose/sysctl_net_rose.c | |||
@@ -138,29 +138,15 @@ static ctl_table rose_table[] = { | |||
138 | { .ctl_name = 0 } | 138 | { .ctl_name = 0 } |
139 | }; | 139 | }; |
140 | 140 | ||
141 | static ctl_table rose_dir_table[] = { | 141 | static struct ctl_path rose_path[] = { |
142 | { | 142 | { .procname = "net", .ctl_name = CTL_NET, }, |
143 | .ctl_name = NET_ROSE, | 143 | { .procname = "rose", .ctl_name = NET_ROSE, }, |
144 | .procname = "rose", | 144 | { } |
145 | .mode = 0555, | ||
146 | .child = rose_table | ||
147 | }, | ||
148 | { .ctl_name = 0 } | ||
149 | }; | ||
150 | |||
151 | static ctl_table rose_root_table[] = { | ||
152 | { | ||
153 | .ctl_name = CTL_NET, | ||
154 | .procname = "net", | ||
155 | .mode = 0555, | ||
156 | .child = rose_dir_table | ||
157 | }, | ||
158 | { .ctl_name = 0 } | ||
159 | }; | 145 | }; |
160 | 146 | ||
161 | void __init rose_register_sysctl(void) | 147 | void __init rose_register_sysctl(void) |
162 | { | 148 | { |
163 | rose_table_header = register_sysctl_table(rose_root_table); | 149 | rose_table_header = register_sysctl_paths(rose_path, rose_table); |
164 | } | 150 | } |
165 | 151 | ||
166 | void rose_unregister_sysctl(void) | 152 | void rose_unregister_sysctl(void) |