ar71xx: add v4.14 support
[openwrt/staging/hauke.git] / target / linux / ar71xx / files / arch / mips / ath79 / mach-c60.c
index 144f5db740fee0159113c5ca7b9be103bc13829b..f5b8d3065f64e90a7861062ada908b45159de40a 100644 (file)
 #include <linux/pci.h>
 #include <linux/phy.h>
 #include <linux/mtd/mtd.h>
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0)
 #include <linux/mtd/nand.h>
+#else
+#include <linux/mtd/rawnand.h>
+#endif
 #include <linux/mtd/partitions.h>
 #include <linux/mtd/physmap.h>
 #include <linux/platform_device.h>
@@ -115,7 +119,7 @@ static struct ar8327_platform_data c60_ar8327_data = {
 static struct mdio_board_info c60_mdio0_info[] = {
        {
                .bus_id = "ag71xx-mdio.0",
-               .phy_addr = 0,
+               .mdio_addr = 0,
                .platform_data = &c60_ar8327_data,
        },
 };