Root/package/ar7-atm/patches-D7.04.03.00/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 
21diff -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
24@@ -458,6 +458,9 @@
25     const struct firmware *fw_entry;
26     size_t size;
27 
28+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30)
29+ dev_set_name(&avsar, "avsar");
30+#endif
31     printk("requesting firmware image \"ar0700xx.bin\"\n");
32     if(device_register(&avsar) < 0) {
33         printk(KERN_ERR
34

Archive Download this file



interactive