ar71xx: fix mii bus irq assignment
[openwrt/staging/chunkeey.git] / target / linux / ar71xx / files / drivers / net / ethernet / atheros / ag71xx / ag71xx.h
index 35318fb7138565a997a8fe976c169bed5765b2c5..77ee5b36ecbe27d414e20035ab194c9ab9604a2e 100644 (file)
@@ -116,7 +116,9 @@ struct ag71xx_ring {
 
 struct ag71xx_mdio {
        struct mii_bus          *mii_bus;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,5,0)
        int                     mii_irq[PHY_MAX_ADDR];
+#endif
        void __iomem            *mdio_base;
        struct ag71xx_mdio_platform_data *pdata;
 };