diff options
Diffstat (limited to 'arch/frv')
-rw-r--r-- | arch/frv/kernel/sysctl.c | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/arch/frv/kernel/sysctl.c b/arch/frv/kernel/sysctl.c index 37528ebef759..577ad16cf840 100644 --- a/arch/frv/kernel/sysctl.c +++ b/arch/frv/kernel/sysctl.c | |||
@@ -175,11 +175,25 @@ static int procctl_frv_pin_cxnr(ctl_table *table, int write, struct file *filp, | |||
175 | */ | 175 | */ |
176 | static struct ctl_table frv_table[] = | 176 | static struct ctl_table frv_table[] = |
177 | { | 177 | { |
178 | { 1, "cache-mode", NULL, 0, 0644, NULL, &procctl_frv_cachemode }, | 178 | { |
179 | .ctl_name = 1, | ||
180 | .procname = "cache-mode", | ||
181 | .data = NULL, | ||
182 | .maxlen = 0, | ||
183 | .mode = 0644, | ||
184 | .proc_handler = &procctl_frv_cachemode, | ||
185 | }, | ||
179 | #ifdef CONFIG_MMU | 186 | #ifdef CONFIG_MMU |
180 | { 2, "pin-cxnr", NULL, 0, 0644, NULL, &procctl_frv_pin_cxnr }, | 187 | { |
188 | .ctl_name = 2, | ||
189 | .procname = "pin-cxnr", | ||
190 | .data = NULL, | ||
191 | .maxlen = 0, | ||
192 | .mode = 0644, | ||
193 | .proc_handler = &procctl_frv_pin_cxnr | ||
194 | }, | ||
181 | #endif | 195 | #endif |
182 | { 0 } | 196 | {} |
183 | }; | 197 | }; |
184 | 198 | ||
185 | /* | 199 | /* |
@@ -188,8 +202,13 @@ static struct ctl_table frv_table[] = | |||
188 | */ | 202 | */ |
189 | static struct ctl_table frv_dir_table[] = | 203 | static struct ctl_table frv_dir_table[] = |
190 | { | 204 | { |
191 | {CTL_FRV, "frv", NULL, 0, 0555, frv_table}, | 205 | { |
192 | {0} | 206 | .ctl_name = CTL_FRV, |
207 | .procname = "frv", | ||
208 | .mode = 0555, | ||
209 | .child = frv_table | ||
210 | }, | ||
211 | {} | ||
193 | }; | 212 | }; |
194 | 213 | ||
195 | /* | 214 | /* |