net: stmmac: make the pcs_lynx cleanup sequence specific to dwmac_socfpga
[platform/kernel/linux-starfive.git] / drivers / net / ethernet / stmicro / stmmac / stmmac_mdio.c
index c784a67..3db1cb0 100644 (file)
@@ -665,9 +665,6 @@ int stmmac_mdio_unregister(struct net_device *ndev)
        if (priv->hw->xpcs)
                xpcs_destroy(priv->hw->xpcs);
 
-       if (priv->hw->lynx_pcs)
-               lynx_pcs_destroy(priv->hw->lynx_pcs);
-
        mdiobus_unregister(priv->mii);
        priv->mii->priv = NULL;
        mdiobus_free(priv->mii);