Commit aa7e0ed4 authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller

net: ftgmac100: remove empty MDIO bus reset function

ftgmac100_mdiobus_reset() does nothing useful and is optional for the
MDIO bus code, so let's just remove it.
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fe1ee450
...@@ -940,11 +940,6 @@ static int ftgmac100_mdiobus_write(struct mii_bus *bus, int phy_addr, ...@@ -940,11 +940,6 @@ static int ftgmac100_mdiobus_write(struct mii_bus *bus, int phy_addr,
return -EIO; return -EIO;
} }
static int ftgmac100_mdiobus_reset(struct mii_bus *bus)
{
return 0;
}
/****************************************************************************** /******************************************************************************
* struct ethtool_ops functions * struct ethtool_ops functions
*****************************************************************************/ *****************************************************************************/
...@@ -1262,7 +1257,6 @@ static int ftgmac100_probe(struct platform_device *pdev) ...@@ -1262,7 +1257,6 @@ static int ftgmac100_probe(struct platform_device *pdev)
priv->mii_bus->priv = netdev; priv->mii_bus->priv = netdev;
priv->mii_bus->read = ftgmac100_mdiobus_read; priv->mii_bus->read = ftgmac100_mdiobus_read;
priv->mii_bus->write = ftgmac100_mdiobus_write; priv->mii_bus->write = ftgmac100_mdiobus_write;
priv->mii_bus->reset = ftgmac100_mdiobus_reset;
priv->mii_bus->irq = priv->phy_irq; priv->mii_bus->irq = priv->phy_irq;
for (i = 0; i < PHY_MAX_ADDR; i++) for (i = 0; i < PHY_MAX_ADDR; i++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment