1 Index: sangam_atm-D7.05.01.00/tn7dsl.c
2 ===================================================================
3 --- sangam_atm-D7.05.01.00.orig/tn7dsl.c 2010-11-09 18:32:33.478706990 +0100
4 +++ sangam_atm-D7.05.01.00/tn7dsl.c 2010-11-09 18:32:33.488706997 +0100
6 static struct led_funcs ledreg[2];
9 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)
10 #define DEV_DSLMOD CTL_UNNUMBERED
14 #define MAX_STR_SIZE 256
15 #define DSL_MOD_SIZE 256
17 @@ -3615,9 +3619,16 @@
21 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
22 ret = proc_dostring(ctl, write, filp, buffer, lenp, 0);
25 + ret = proc_dostring(ctl, write, buffer, lenp, 0);
27 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)
28 switch (ctl->ctl_name)
30 + switch ((long)ctl->extra2)
34 ptr = strpbrk(info, " \t");
35 @@ -3701,14 +3712,29 @@
38 len += sprintf(info+len, mod_req);
39 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
40 ret = proc_dostring(ctl, write, filp, buffer, lenp, 0);
42 + ret = proc_dostring(ctl, write, buffer, lenp, 0);
49 ctl_table dslmod_table[] = {
50 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)
51 {DEV_DSLMOD, "dslmod", info, DSL_MOD_SIZE, 0644, NULL, NULL, &dslmod_sysctl, &sysctl_string}
54 + .procname = "dslmod",
56 + .maxlen = DSL_MOD_SIZE,
58 + .proc_handler = &dslmod_sysctl,
59 + .extra2 = (void *)DEV_DSLMOD,
65 @@ -3716,7 +3742,16 @@
66 /* Make sure that /proc/sys/dev is there */
67 ctl_table dslmod_root_table[] = {
69 + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)
70 {CTL_DEV, "dev", NULL, 0, 0555, dslmod_table}
76 + .child = dslmod_table,
80 #endif /* CONFIG_PROC_FS */