From 4213c7034173ca9cf6366cd95e4aaab9f6dd517e Mon Sep 17 00:00:00 2001 From: hauke Date: Sun, 17 Apr 2016 19:10:13 +0000 Subject: [PATCH] ar71xx: fix build with kernel 4.4 The file linux/mdio-gpio.h was moved to linux/platform_data/mdio-gpio.h in kernel 4.4 Reported-by: Arjen de Korte Signed-off-by: Hauke Mehrtens git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49193 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ar71xx/files/arch/mips/ath79/mach-om5pacv2.c | 4 ++++ target/linux/ar71xx/files/arch/mips/ath79/mach-rb4xx.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-om5pacv2.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-om5pacv2.c index 587ca32601..46273eddba 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-om5pacv2.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-om5pacv2.c @@ -11,7 +11,11 @@ */ #include +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0) #include +#else +#include +#endif #include #include #include diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb4xx.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb4xx.c index 1a61b458d5..9ad7d05c10 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb4xx.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb4xx.c @@ -11,7 +11,11 @@ #include #include +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0) #include +#else +#include +#endif #include #include #include -- 2.11.0