Author: hauke Date: 2016-04-17 21:10:13 +0200 (Sun, 17 Apr 2016) New Revision: 49193
Modified: trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-om5pacv2.c trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-rb4xx.c Log: 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 <[email protected]> Signed-off-by: Hauke Mehrtens <[email protected]> Modified: trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-om5pacv2.c =================================================================== --- trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-om5pacv2.c 2016-04-17 15:35:18 UTC (rev 49192) +++ trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-om5pacv2.c 2016-04-17 19:10:13 UTC (rev 49193) @@ -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> Modified: trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-rb4xx.c =================================================================== --- trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-rb4xx.c 2016-04-17 15:35:18 UTC (rev 49192) +++ trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-rb4xx.c 2016-04-17 19:10:13 UTC (rev 49193) @@ -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> _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
