diff options
Diffstat (limited to 'drivers/char/rtc.c')
-rw-r--r-- | drivers/char/rtc.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/char/rtc.c b/drivers/char/rtc.c index b6d3072dce5a..c7dac9b13351 100644 --- a/drivers/char/rtc.c +++ b/drivers/char/rtc.c | |||
@@ -282,7 +282,7 @@ irqreturn_t rtc_interrupt(int irq, void *dev_id) | |||
282 | */ | 282 | */ |
283 | static ctl_table rtc_table[] = { | 283 | static ctl_table rtc_table[] = { |
284 | { | 284 | { |
285 | .ctl_name = 1, | 285 | .ctl_name = CTL_UNNUMBERED, |
286 | .procname = "max-user-freq", | 286 | .procname = "max-user-freq", |
287 | .data = &rtc_max_user_freq, | 287 | .data = &rtc_max_user_freq, |
288 | .maxlen = sizeof(int), | 288 | .maxlen = sizeof(int), |
@@ -294,9 +294,8 @@ static ctl_table rtc_table[] = { | |||
294 | 294 | ||
295 | static ctl_table rtc_root[] = { | 295 | static ctl_table rtc_root[] = { |
296 | { | 296 | { |
297 | .ctl_name = 1, | 297 | .ctl_name = CTL_UNNUMBERED, |
298 | .procname = "rtc", | 298 | .procname = "rtc", |
299 | .maxlen = 0, | ||
300 | .mode = 0555, | 299 | .mode = 0555, |
301 | .child = rtc_table, | 300 | .child = rtc_table, |
302 | }, | 301 | }, |
@@ -307,7 +306,6 @@ static ctl_table dev_root[] = { | |||
307 | { | 306 | { |
308 | .ctl_name = CTL_DEV, | 307 | .ctl_name = CTL_DEV, |
309 | .procname = "dev", | 308 | .procname = "dev", |
310 | .maxlen = 0, | ||
311 | .mode = 0555, | 309 | .mode = 0555, |
312 | .child = rtc_root, | 310 | .child = rtc_root, |
313 | }, | 311 | }, |
@@ -318,7 +316,7 @@ static struct ctl_table_header *sysctl_header; | |||
318 | 316 | ||
319 | static int __init init_sysctl(void) | 317 | static int __init init_sysctl(void) |
320 | { | 318 | { |
321 | sysctl_header = register_sysctl_table(dev_root, 0); | 319 | sysctl_header = register_sysctl_table(dev_root); |
322 | return 0; | 320 | return 0; |
323 | } | 321 | } |
324 | 322 | ||