Revert "ramips: add support for kernel 5.10"
[openwrt/staging/rmilecki.git] / target / linux / ramips / files / drivers / net / ethernet / ralink / mdio_rt2880.c
index 6242cf9b4234c49bd95488aa10724e6c9c6ed8b3..8d82c8f7adcc4ed207bb8010fcbe9a61cd6be423 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;
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0)
        int phy_mode;
-#else
-       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);
@@ -176,11 +172,7 @@ void rt2880_port_init(struct fe_priv *priv, struct device_node *np)
                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);
-#endif
        switch (phy_mode) {
        case PHY_INTERFACE_MODE_RGMII:
                break;