9cafa5e7c88d096568f586abfc6688264f05319c
[openwrt.git] / package / ar7-atm / patches-D7.05.01.00 / 170-bus_id_removal.patch
1 Index: sangam_atm-D7.05.01.00/tn7dsl.c
2 ===================================================================
3 --- sangam_atm-D7.05.01.00.orig/tn7dsl.c        2010-03-07 18:18:39.000000000 +0100
4 +++ sangam_atm-D7.05.01.00/tn7dsl.c     2010-03-07 18:19:04.000000000 +0100
5 @@ -117,6 +117,7 @@
6  #include <linux/vmalloc.h>
7  #include <linux/file.h>
8  #include <linux/firmware.h>
9 +#include <linux/version.h>
10  
11  #include <asm/io.h>
12  #include <asm/ar7/ar7.h>
13 @@ -492,7 +493,9 @@
14  }
15  
16  static struct device avsar = {
17 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
18         .bus_id    = "vlynq",
19 +#endif
20         .release   = avsar_release,
21  };
22  
23 @@ -501,6 +504,9 @@
24         const struct firmware *fw_entry;
25         size_t size;
26  
27 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30)
28 +       dev_set_name(&avsar, "avsar");
29 +#endif
30         printk("requesting firmware image \"ar0700xx.bin\"\n");
31         if(device_register(&avsar) < 0) {
32                 printk(KERN_ERR