1 Index: sangam_atm-D7.04.03.00/tn7dsl.c
2 ===================================================================
3 --- sangam_atm-D7.04.03.00.orig/tn7dsl.c 2010-08-26 09:36:54.000000000 +0200
4 +++ sangam_atm-D7.04.03.00/tn7dsl.c 2010-08-26 10:18:47.000000000 +0200
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 @@ -3431,9 +3435,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 @@ -3517,14 +3528,22 @@
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}
53 + {"dslmod", info, DSL_MOD_SIZE, 0644, NULL, NULL, &dslmod_sysctl, NULL, (void *)DEV_DSLMOD}