Skip to content

Commit

Permalink
net: ftgmac100: remove empty MDIO bus reset function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Florian Fainelli authored and David S. Miller committed Mar 28, 2014
1 parent fe1ee45 commit aa7e0ed
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/net/ethernet/faraday/ftgmac100.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*****************************************************************************/
Expand Down Expand Up @@ -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++)
Expand Down

0 comments on commit aa7e0ed

Please sign in to comment.