[ar7] compile fixes in ar7-atm for new kernels
[openwrt-10.03/.git] / package / ar7-atm / patches / 170-bus_id_removal.patch
1 --- a/tn7dsl.c  2009-08-02 14:36:17.000000000 +0200
2 +++ b/tn7dsl.c  2009-08-02 14:35:49.000000000 +0200
3 @@ -109,6 +109,7 @@
4  #include <linux/vmalloc.h>
5  #include <linux/file.h>
6  #include <linux/firmware.h>
7 +#include <linux/version.h>
8  
9  #include <asm/io.h>
10  #include <asm/ar7/ar7.h>
11 @@ -446,7 +447,9 @@
12  }
13  
14  static struct device avsar = {
15 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
16         .bus_id    = "vlynq",
17 +#endif
18         .release   = avsar_release,
19  };
20