Skip to content

Commit

Permalink
net: greth: remove empty MDIO bus reset function
Browse files Browse the repository at this point in the history
greth_mdio_reset() does nothing useful and this function 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 ebe5e3c commit 1f55338
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/net/ethernet/aeroflex/greth.c
Original file line number Diff line number Diff line change
Expand Up @@ -1213,11 +1213,6 @@ static int greth_mdio_write(struct mii_bus *bus, int phy, int reg, u16 val)
return 0;
}

static int greth_mdio_reset(struct mii_bus *bus)
{
return 0;
}

static void greth_link_change(struct net_device *dev)
{
struct greth_private *greth = netdev_priv(dev);
Expand Down Expand Up @@ -1332,7 +1327,6 @@ static int greth_mdio_init(struct greth_private *greth)
snprintf(greth->mdio->id, MII_BUS_ID_SIZE, "%s-%d", greth->mdio->name, greth->irq);
greth->mdio->read = greth_mdio_read;
greth->mdio->write = greth_mdio_write;
greth->mdio->reset = greth_mdio_reset;
greth->mdio->priv = greth;

greth->mdio->irq = greth->mdio_irqs;
Expand Down

0 comments on commit 1f55338

Please sign in to comment.