sysctl: Remove the unused frv sysctl unumbers
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 1 Apr 2009 11:46:38 +0000 (04:46 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 12 Nov 2009 10:04:53 +0000 (02:04 -0800)
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>
arch/frv/kernel/pm.c
arch/frv/kernel/sysctl.c

index 0d4d3e3a4cfcb72c2ad2538c410635f9a799c524..17e2e3fb547d4dde7fffb9731050057027b61ac3 100644 (file)
@@ -393,7 +393,7 @@ static int cm_sysctl(ctl_table *table,
 static struct ctl_table pm_table[] =
 {
        {
-               .ctl_name       = CTL_PM_SUSPEND,
+               .ctl_name       = CTL_UNNUMBERED,
                .procname       = "suspend",
                .data           = NULL,
                .maxlen         = 0,
index 3e9d7e03fb95b35cd94bf4779b667641ea8df528..139628afea1766cf1c60864c2d19443507228e5d 100644 (file)
@@ -176,7 +176,7 @@ static int procctl_frv_pin_cxnr(ctl_table *table, int write, struct file *filp,
 static struct ctl_table frv_table[] =
 {
        {
-               .ctl_name       = 1,
+               .ctl_name       = CTL_UNNUMBERD,
                .procname       = "cache-mode",
                .data           = NULL,
                .maxlen         = 0,
@@ -185,7 +185,7 @@ static struct ctl_table frv_table[] =
        },
 #ifdef CONFIG_MMU
        {
-               .ctl_name       = 2,
+               .ctl_name       = CTL_UNNUMBERD,
                .procname       = "pin-cxnr",
                .data           = NULL,
                .maxlen         = 0,
@@ -203,7 +203,7 @@ static struct ctl_table frv_table[] =
 static struct ctl_table frv_dir_table[] =
 {
        {
-               .ctl_name       = CTL_FRV,
+               .ctl_name       = CTL_UNNUMBERED,
                .procname       = "frv",
                .mode           = 0555,
                .child          = frv_table