net: ftgmac100: remove empty MDIO bus reset function
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 27 Mar 2014 01:07:23 +0000 (18:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Mar 2014 05:38:02 +0000 (01:38 -0400)
ftgmac100_mdiobus_reset() does nothing useful and is optional for the
MDIO bus code, so let's just remove it.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/faraday/ftgmac100.c

index c11ecbc98149ccd7b3e7a884979d362c8da724cf..68069eabc4f855c0636d12b69854e44919ffb863 100644 (file)
@@ -940,11 +940,6 @@ static int ftgmac100_mdiobus_write(struct mii_bus *bus, int phy_addr,
        return -EIO;
 }
 
-static int ftgmac100_mdiobus_reset(struct mii_bus *bus)
-{
-       return 0;
-}
-
 /******************************************************************************
  * struct ethtool_ops functions
  *****************************************************************************/
@@ -1262,7 +1257,6 @@ static int ftgmac100_probe(struct platform_device *pdev)
        priv->mii_bus->priv = netdev;
        priv->mii_bus->read = ftgmac100_mdiobus_read;
        priv->mii_bus->write = ftgmac100_mdiobus_write;
-       priv->mii_bus->reset = ftgmac100_mdiobus_reset;
        priv->mii_bus->irq = priv->phy_irq;
 
        for (i = 0; i < PHY_MAX_ADDR; i++)