diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2009-04-01 07:46:38 -0400 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2009-11-12 05:04:53 -0500 |
commit | 961303c44d8384a872d7eee069701b044ef1abc5 (patch) | |
tree | 3fe1d59cfed90ba0fac61cdd379a3d9787d3755d /arch/frv | |
parent | 757010f026ab3044c594003e216d00a33ed95c56 (diff) |
sysctl: Remove the unused frv sysctl unumbers
The frv sysctl tables can only be used from proc so kill
the sysctl numbers.
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'arch/frv')
-rw-r--r-- | arch/frv/kernel/pm.c | 2 | ||||
-rw-r--r-- | arch/frv/kernel/sysctl.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/frv/kernel/pm.c b/arch/frv/kernel/pm.c index 0d4d3e3a4cfc..17e2e3fb547d 100644 --- a/arch/frv/kernel/pm.c +++ b/arch/frv/kernel/pm.c | |||
@@ -393,7 +393,7 @@ static int cm_sysctl(ctl_table *table, | |||
393 | static struct ctl_table pm_table[] = | 393 | static struct ctl_table pm_table[] = |
394 | { | 394 | { |
395 | { | 395 | { |
396 | .ctl_name = CTL_PM_SUSPEND, | 396 | .ctl_name = CTL_UNNUMBERED, |
397 | .procname = "suspend", | 397 | .procname = "suspend", |
398 | .data = NULL, | 398 | .data = NULL, |
399 | .maxlen = 0, | 399 | .maxlen = 0, |
diff --git a/arch/frv/kernel/sysctl.c b/arch/frv/kernel/sysctl.c index 3e9d7e03fb95..139628afea17 100644 --- a/arch/frv/kernel/sysctl.c +++ b/arch/frv/kernel/sysctl.c | |||
@@ -176,7 +176,7 @@ static int procctl_frv_pin_cxnr(ctl_table *table, int write, struct file *filp, | |||
176 | static struct ctl_table frv_table[] = | 176 | static struct ctl_table frv_table[] = |
177 | { | 177 | { |
178 | { | 178 | { |
179 | .ctl_name = 1, | 179 | .ctl_name = CTL_UNNUMBERD, |
180 | .procname = "cache-mode", | 180 | .procname = "cache-mode", |
181 | .data = NULL, | 181 | .data = NULL, |
182 | .maxlen = 0, | 182 | .maxlen = 0, |
@@ -185,7 +185,7 @@ static struct ctl_table frv_table[] = | |||
185 | }, | 185 | }, |
186 | #ifdef CONFIG_MMU | 186 | #ifdef CONFIG_MMU |
187 | { | 187 | { |
188 | .ctl_name = 2, | 188 | .ctl_name = CTL_UNNUMBERD, |
189 | .procname = "pin-cxnr", | 189 | .procname = "pin-cxnr", |
190 | .data = NULL, | 190 | .data = NULL, |
191 | .maxlen = 0, | 191 | .maxlen = 0, |
@@ -203,7 +203,7 @@ static struct ctl_table frv_table[] = | |||
203 | static struct ctl_table frv_dir_table[] = | 203 | static struct ctl_table frv_dir_table[] = |
204 | { | 204 | { |
205 | { | 205 | { |
206 | .ctl_name = CTL_FRV, | 206 | .ctl_name = CTL_UNNUMBERED, |
207 | .procname = "frv", | 207 | .procname = "frv", |
208 | .mode = 0555, | 208 | .mode = 0555, |
209 | .child = frv_table | 209 | .child = frv_table |