kernel: remove obsolete kernel version switches
[openwrt/openwrt.git] / target / linux / ramips / files / drivers / net / ethernet / ralink / mdio_rt2880.c
index 6242cf9b4234c49bd95488aa10724e6c9c6ed8b3..0c47d118464c6f93f350efc0724ff4d7f20c2a57 100644 (file)
@@ -156,11 +156,7 @@ void rt2880_port_init(struct fe_priv *priv, struct device_node *np)
        const __be32 *id = of_get_property(np, "reg", NULL);
        const __be32 *link;
        int size;
        const __be32 *id = of_get_property(np, "reg", NULL);
        const __be32 *link;
        int size;
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0)
-       int phy_mode;
-#else
        phy_interface_t phy_mode = PHY_INTERFACE_MODE_NA;
        phy_interface_t phy_mode = PHY_INTERFACE_MODE_NA;
-#endif
 
        if (!id || (be32_to_cpu(*id) != 0)) {
                pr_err("%s: invalid port id\n", np->name);
 
        if (!id || (be32_to_cpu(*id) != 0)) {
                pr_err("%s: invalid port id\n", np->name);
@@ -176,11 +172,7 @@ void rt2880_port_init(struct fe_priv *priv, struct device_node *np)
                return;
        }
 
                return;
        }
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0)
-       phy_mode = of_get_phy_mode(np);
-#else
        of_get_phy_mode(np, &phy_mode);
        of_get_phy_mode(np, &phy_mode);
-#endif
        switch (phy_mode) {
        case PHY_INTERFACE_MODE_RGMII:
                break;
        switch (phy_mode) {
        case PHY_INTERFACE_MODE_RGMII:
                break;