Skip to content

Commit

Permalink
bfin_mac: remove empty MDIO bus reset function
Browse files Browse the repository at this point in the history
bfin_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 42cb7a2 commit 3eecc94
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/net/ethernet/adi/bfin_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,11 +307,6 @@ static int bfin_mdiobus_write(struct mii_bus *bus, int phy_addr, int regnum,
return bfin_mdio_poll();
}

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

static void bfin_mac_adjust_link(struct net_device *dev)
{
struct bfin_mac_local *lp = netdev_priv(dev);
Expand Down Expand Up @@ -1824,7 +1819,6 @@ static int bfin_mii_bus_probe(struct platform_device *pdev)
goto out_err_alloc;
miibus->read = bfin_mdiobus_read;
miibus->write = bfin_mdiobus_write;
miibus->reset = bfin_mdiobus_reset;

miibus->parent = &pdev->dev;
miibus->name = "bfin_mii_bus";
Expand Down

0 comments on commit 3eecc94

Please sign in to comment.