projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2294336
)
[PATCH] sysctl: remove sys_sysctl support from drivers/char/rtc.c
author
Eric W. Biederman
<
[email protected]
>
Wed, 14 Feb 2007 08:33:52 +0000
(
00:33
-0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 14 Feb 2007 16:09:57 +0000
(08:09 -0800)
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 <
[email protected]
>
Cc: Alessandro Zummo <
[email protected]
>
Acked-by: Ralf Baechle <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/char/rtc.c
patch
|
blob
|
history
diff --git
a/drivers/char/rtc.c
b/drivers/char/rtc.c
index b6d3072dce5aabd956c5eef07c010f7ec8db7c7c..9620abb2a6dccbd40dbe1a82f9ac6512a68c964c 100644
(file)
--- a/
drivers/char/rtc.c
+++ b/
drivers/char/rtc.c
@@
-282,7
+282,7
@@
irqreturn_t rtc_interrupt(int irq, void *dev_id)
*/
static ctl_table rtc_table[] = {
{
- .ctl_name =
1
,
+ .ctl_name =
CTL_UNNUMBERED
,
.procname = "max-user-freq",
.data = &rtc_max_user_freq,
.maxlen = sizeof(int),
@@
-294,9
+294,8
@@
static ctl_table rtc_table[] = {
static ctl_table rtc_root[] = {
{
- .ctl_name =
1
,
+ .ctl_name =
CTL_UNNUMBERED
,
.procname = "rtc",
- .maxlen = 0,
.mode = 0555,
.child = rtc_table,
},
@@
-307,7
+306,6
@@
static ctl_table dev_root[] = {
{
.ctl_name = CTL_DEV,
.procname = "dev",
- .maxlen = 0,
.mode = 0555,
.child = rtc_root,
},