Root/package/ar7-atm/patches-D7.05.01.00/180-git_headers_include.patch

1--- a/tn7atm.c
2+++ b/tn7atm.c
3@@ -76,10 +76,16 @@
4 #include <linux/proc_fs.h>
5 #include <linux/string.h>
6 #include <linux/ctype.h>
7+#include <linux/version.h>
8 
9 #include <asm/io.h>
10+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
11 #include <asm/ar7/ar7.h>
12 #include <asm/ar7/prom.h>
13+#else
14+#include <asm/mach-ar7/ar7.h>
15+#include <asm/mach-ar7/prom.h>
16+#endif
17 
18 #include "dsl_hal_api.h"
19 #ifdef AR7_EFM
20--- a/tn7dsl.c
21+++ b/tn7dsl.c
22@@ -120,8 +120,13 @@
23 #include <linux/version.h>
24 
25 #include <asm/io.h>
26+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
27 #include <asm/ar7/ar7.h>
28 #include <asm/ar7/prom.h>
29+#else
30+#include <asm/mach-ar7/ar7.h>
31+#include <asm/mach-ar7/prom.h>
32+#endif
33 
34 /* Modules specific header files */
35 #ifdef AR7_EFM
36--- a/tn7sar.c
37+++ b/tn7sar.c
38@@ -53,10 +53,16 @@
39 #include <linux/proc_fs.h>
40 #include <linux/string.h>
41 #include <linux/ctype.h>
42+#include <linux/version.h>
43 
44 #include <asm/io.h>
45+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
46 #include <asm/ar7/ar7.h>
47 #include <asm/ar7/prom.h>
48+#else
49+#include <asm/mach-ar7/ar7.h>
50+#include <asm/mach-ar7/prom.h>
51+#endif
52 
53 #define _CPHAL_AAL5
54 #define _CPHAL_SAR
55

Archive Download this file



interactive