ar71xx: fix build with kernel 4.4
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / files / arch / mips / ath79 / mach-om5pacv2.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>