1 --- a/tn7dsl.c 2009-08-02 14:36:17.000000000 +0200
2 +++ b/tn7dsl.c 2009-08-02 14:35:49.000000000 +0200
4 #include <linux/vmalloc.h>
5 #include <linux/file.h>
6 #include <linux/firmware.h>
7 +#include <linux/version.h>
10 #include <asm/ar7/ar7.h>
14 static struct device avsar = {
15 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
18 .release = avsar_release,
21 diff -urN sangam_atm-D7.04.03.00/tn7dsl.c sangam_atm-D7.04.03.00.new/tn7dsl.c
22 --- sangam_atm-D7.04.03.00/tn7dsl.c 2009-08-08 21:41:11.000000000 +0200
23 +++ sangam_atm-D7.04.03.00.new/tn7dsl.c 2009-08-08 21:41:40.000000000 +0200
25 const struct firmware *fw_entry;
28 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30)
29 + dev_set_name(&avsar, "avsar");
31 printk("requesting firmware image \"ar0700xx.bin\"\n");
32 if(device_register(&avsar) < 0) {