ar71xx: fix build with kernel 4.4
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 17 Apr 2016 19:10:13 +0000 (19:10 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 17 Apr 2016 19:10:13 +0000 (19:10 +0000)
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

target/linux/ar71xx/files/arch/mips/ath79/mach-om5pacv2.c
target/linux/ar71xx/files/arch/mips/ath79/mach-rb4xx.c

index 587ca3260167389e9f86edb186ee74ac639552ba..46273eddbadea2b9605853889eea3f0e0f4aafff 100644 (file)
  */
 
 #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>
index 1a61b458d543c6b32650cce8a67e05248383d6ba..9ad7d05c10fddb8ba0aab84ba255959d6446c183 100644 (file)
 
 #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>