diff options
Diffstat (limited to 'net/llc/sysctl_net_llc.c')
-rw-r--r-- | net/llc/sysctl_net_llc.c | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/net/llc/sysctl_net_llc.c b/net/llc/sysctl_net_llc.c index 46992d036017..5bef1dcf18e3 100644 --- a/net/llc/sysctl_net_llc.c +++ b/net/llc/sysctl_net_llc.c | |||
@@ -92,31 +92,17 @@ static struct ctl_table llc_table[] = { | |||
92 | { 0 }, | 92 | { 0 }, |
93 | }; | 93 | }; |
94 | 94 | ||
95 | static struct ctl_table llc_dir_table[] = { | 95 | static struct ctl_path llc_path[] = { |
96 | { | 96 | { .procname = "net", .ctl_name = CTL_NET, }, |
97 | .ctl_name = NET_LLC, | 97 | { .procname = "llc", .ctl_name = NET_LLC, }, |
98 | .procname = "llc", | 98 | { } |
99 | .mode = 0555, | ||
100 | .child = llc_table, | ||
101 | }, | ||
102 | { 0 }, | ||
103 | }; | ||
104 | |||
105 | static struct ctl_table llc_root_table[] = { | ||
106 | { | ||
107 | .ctl_name = CTL_NET, | ||
108 | .procname = "net", | ||
109 | .mode = 0555, | ||
110 | .child = llc_dir_table, | ||
111 | }, | ||
112 | { 0 }, | ||
113 | }; | 99 | }; |
114 | 100 | ||
115 | static struct ctl_table_header *llc_table_header; | 101 | static struct ctl_table_header *llc_table_header; |
116 | 102 | ||
117 | int __init llc_sysctl_init(void) | 103 | int __init llc_sysctl_init(void) |
118 | { | 104 | { |
119 | llc_table_header = register_sysctl_table(llc_root_table); | 105 | llc_table_header = register_sysctl_paths(llc_path, llc_table); |
120 | 106 | ||
121 | return llc_table_header ? 0 : -ENOMEM; | 107 | return llc_table_header ? 0 : -ENOMEM; |
122 | } | 108 | } |