[PATCH] sysctl: remove sys_sysctl support from drivers/char/rtc.c
The real time clock driver was using the binary number reserved for cdroms in the sysctl binary number interface, which is a no-no. So since the sysctl binary interface is wrong remove it. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Cc: Alessandro Zummo <a.zummo@towertech.it> Acked-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
22943364cf
commit
7735362ac3
@@ -282,7 +282,7 @@ irqreturn_t rtc_interrupt(int irq, void *dev_id)
|
|||||||
*/
|
*/
|
||||||
static ctl_table rtc_table[] = {
|
static ctl_table rtc_table[] = {
|
||||||
{
|
{
|
||||||
.ctl_name = 1,
|
.ctl_name = CTL_UNNUMBERED,
|
||||||
.procname = "max-user-freq",
|
.procname = "max-user-freq",
|
||||||
.data = &rtc_max_user_freq,
|
.data = &rtc_max_user_freq,
|
||||||
.maxlen = sizeof(int),
|
.maxlen = sizeof(int),
|
||||||
@@ -294,9 +294,8 @@ static ctl_table rtc_table[] = {
|
|||||||
|
|
||||||
static ctl_table rtc_root[] = {
|
static ctl_table rtc_root[] = {
|
||||||
{
|
{
|
||||||
.ctl_name = 1,
|
.ctl_name = CTL_UNNUMBERED,
|
||||||
.procname = "rtc",
|
.procname = "rtc",
|
||||||
.maxlen = 0,
|
|
||||||
.mode = 0555,
|
.mode = 0555,
|
||||||
.child = rtc_table,
|
.child = rtc_table,
|
||||||
},
|
},
|
||||||
@@ -307,7 +306,6 @@ static ctl_table dev_root[] = {
|
|||||||
{
|
{
|
||||||
.ctl_name = CTL_DEV,
|
.ctl_name = CTL_DEV,
|
||||||
.procname = "dev",
|
.procname = "dev",
|
||||||
.maxlen = 0,
|
|
||||||
.mode = 0555,
|
.mode = 0555,
|
||||||
.child = rtc_root,
|
.child = rtc_root,
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user