diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2014-03-26 21:07:16 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-28 01:38:02 -0400 |
commit | 89e158f909253d8c7c2a65d1b2cbac2f07a28ed0 (patch) | |
tree | 82450c165aea1be32bf3219076614147590e70d0 /drivers/net/ethernet | |
parent | 5b31f22a8ba56cf24dfbbddba0b5e1f9b9b2e011 (diff) |
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: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/dnet.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/ethernet/dnet.c b/drivers/net/ethernet/dnet.c index 8a79a32a5674..e9b0faba3078 100644 --- a/drivers/net/ethernet/dnet.c +++ b/drivers/net/ethernet/dnet.c | |||
@@ -170,11 +170,6 @@ static int dnet_mdio_write(struct mii_bus *bus, int mii_id, int regnum, | |||
170 | return 0; | 170 | return 0; |
171 | } | 171 | } |
172 | 172 | ||
173 | static int dnet_mdio_reset(struct mii_bus *bus) | ||
174 | { | ||
175 | return 0; | ||
176 | } | ||
177 | |||
178 | static void dnet_handle_link_change(struct net_device *dev) | 173 | static void dnet_handle_link_change(struct net_device *dev) |
179 | { | 174 | { |
180 | struct dnet *bp = netdev_priv(dev); | 175 | struct dnet *bp = netdev_priv(dev); |
@@ -322,7 +317,6 @@ static int dnet_mii_init(struct dnet *bp) | |||
322 | bp->mii_bus->name = "dnet_mii_bus"; | 317 | bp->mii_bus->name = "dnet_mii_bus"; |
323 | bp->mii_bus->read = &dnet_mdio_read; | 318 | bp->mii_bus->read = &dnet_mdio_read; |
324 | bp->mii_bus->write = &dnet_mdio_write; | 319 | bp->mii_bus->write = &dnet_mdio_write; |
325 | bp->mii_bus->reset = &dnet_mdio_reset; | ||
326 | 320 | ||
327 | snprintf(bp->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x", | 321 | snprintf(bp->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x", |
328 | bp->pdev->name, bp->pdev->id); | 322 | bp->pdev->name, bp->pdev->id); |