3 @@ -209,7 +209,7 @@ led_reg_t ledreg[2];
4 static struct led_funcs ledreg[2];
7 -#define DEV_DSLMOD CTL_UNNUMBERED
9 #define MAX_STR_SIZE 256
10 #define DSL_MOD_SIZE 256
12 @@ -3605,9 +3605,9 @@ static int dslmod_sysctl(ctl_table *ctl,
16 - ret = proc_dostring(ctl, write, filp, buffer, lenp, 0);
17 + ret = proc_dostring(ctl, write, buffer, lenp, 0);
19 - switch (ctl->ctl_name)
20 + switch ((long)ctl->extra2)
23 ptr = strpbrk(info, " \t");
24 @@ -3691,14 +3691,21 @@ static int dslmod_sysctl(ctl_table *ctl,
27 len += sprintf(info+len, mod_req);
28 - ret = proc_dostring(ctl, write, filp, buffer, lenp, 0);
29 + ret = proc_dostring(ctl, write, buffer, lenp, 0);
35 ctl_table dslmod_table[] = {
36 - {DEV_DSLMOD, "dslmod", info, DSL_MOD_SIZE, 0644, NULL, NULL, &dslmod_sysctl, &sysctl_string}
38 + .procname = "dslmod",
40 + .maxlen = DSL_MOD_SIZE,
42 + .proc_handler = &dslmod_sysctl,
43 + .extra2 = (void *)DEV_DSLMOD,
48 @@ -3706,7 +3713,12 @@ ctl_table dslmod_table[] = {
49 /* Make sure that /proc/sys/dev is there */
50 ctl_table dslmod_root_table[] = {
52 - {CTL_DEV, "dev", NULL, 0, 0555, dslmod_table}
57 + .child = dslmod_table,
60 #endif /* CONFIG_PROC_FS */