/* stmmac_mdio_unregister @ndev: net device structure Description: it unregisters the MII bus  */
int stmmac_mdio_unregister(struct net_device *ndev)
/* stmmac_mdio_unregister @ndev: net device structure Description: it unregisters the MII bus  */
int stmmac_mdio_unregister(struct net_device *ndev)
{
	struct stmmac_priv *priv = netdev_priv(ndev);
	mdiobus_unregister(priv->mii);
	priv->mii->priv = NULL;
	kfree(priv->mii);
	return 0;
}