| 1 | --- a/tn7atm.c |
| 2 | +++ b/tn7atm.c |
| 3 | @@ -71,10 +71,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 | #include "tn7atm.h" |
| 20 | --- a/tn7dsl.c |
| 21 | +++ b/tn7dsl.c |
| 22 | @@ -112,8 +112,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 | #include "tn7atm.h" |
| 36 | --- a/tn7sar.c |
| 37 | +++ b/tn7sar.c |
| 38 | @@ -52,10 +52,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 | |