summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2016-04-17 19:10:13 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2016-04-17 19:10:13 +0000
commit00675abc3b83edeb821053cbfcaf399e56ee0c63 (patch)
tree67bebe055a6f95d8681a781fdf7e3a809b5eeb2e
parentfc7368fd82fbfd4f3e89a407a2c2226d38eb6d74 (diff)
downloadmaster-31e0f0ae-00675abc3b83edeb821053cbfcaf399e56ee0c63.tar.gz
master-31e0f0ae-00675abc3b83edeb821053cbfcaf399e56ee0c63.tar.bz2
master-31e0f0ae-00675abc3b83edeb821053cbfcaf399e56ee0c63.zip
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 <arjen+openwrt@de-korte.org> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 49193
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-om5pacv2.c4
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-rb4xx.c4
2 files changed, 8 insertions, 0 deletions
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 <linux/gpio.h>
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0)
#include <linux/mdio-gpio.h>
+#else
+#include <linux/platform_data/mdio-gpio.h>
+#endif
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#include <linux/platform_device.h>
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 <linux/platform_device.h>
#include <linux/irq.h>
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0)
#include <linux/mdio-gpio.h>
+#else
+#include <linux/platform_data/mdio-gpio.h>
+#endif
#include <linux/mmc/host.h>
#include <linux/spi/spi.h>
#include <linux/spi/flash.h>