180-git_headers_include.patch 1.1 KB

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