generic: drop outdated kernel version switches in local drivers
[oweals/openwrt.git] / target / linux / generic / files / drivers / net / phy / rtl8366_smi.c
index 2c4d53fc6769680495cf9d4d918e768ae2a3f895..e8375e514787e61302f34051b49a257539d220c4 100644 (file)
@@ -1035,14 +1035,6 @@ static int rtl8366_smi_mii_init(struct rtl8366_smi *smi)
                 dev_name(smi->parent));
        smi->mii_bus->parent = smi->parent;
        smi->mii_bus->phy_mask = ~(0x1f);
-#if LINUX_VERSION_CODE < KERNEL_VERSION(4,5,0)
-       {
-               int i;
-               smi->mii_bus->irq = smi->mii_irq;
-               for (i = 0; i < PHY_MAX_ADDR; i++)
-                       smi->mii_irq[i] = PHY_POLL;
-       }
-#endif
 
 #ifdef CONFIG_OF
        if (np)