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

dnet: remove empty MDIO bus reset function

dnet_mdio_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 5b31f22a
...@@ -170,11 +170,6 @@ static int dnet_mdio_write(struct mii_bus *bus, int mii_id, int regnum, ...@@ -170,11 +170,6 @@ static int dnet_mdio_write(struct mii_bus *bus, int mii_id, int regnum,
return 0; return 0;
} }
static int dnet_mdio_reset(struct mii_bus *bus)
{
return 0;
}
static void dnet_handle_link_change(struct net_device *dev) static void dnet_handle_link_change(struct net_device *dev)
{ {
struct dnet *bp = netdev_priv(dev); struct dnet *bp = netdev_priv(dev);
...@@ -322,7 +317,6 @@ static int dnet_mii_init(struct dnet *bp) ...@@ -322,7 +317,6 @@ static int dnet_mii_init(struct dnet *bp)
bp->mii_bus->name = "dnet_mii_bus"; bp->mii_bus->name = "dnet_mii_bus";
bp->mii_bus->read = &dnet_mdio_read; bp->mii_bus->read = &dnet_mdio_read;
bp->mii_bus->write = &dnet_mdio_write; bp->mii_bus->write = &dnet_mdio_write;
bp->mii_bus->reset = &dnet_mdio_reset;
snprintf(bp->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x", snprintf(bp->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x",
bp->pdev->name, bp->pdev->id); bp->pdev->name, bp->pdev->id);
......
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