diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2014-03-26 21:07:24 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-28 01:38:02 -0400 |
commit | 42cb7a280609f0b68855f232b95a5f373428fddc (patch) | |
tree | ec40ce6f6be51e341a9225d65eb432c39ac786f0 /drivers/net/ethernet/rdc | |
parent | aa7e0ed4a15dc8d5f278fc71e32ca60c4206f090 (diff) |
r6040: remove empty MDIO bus reset function
r6040_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>
Diffstat (limited to 'drivers/net/ethernet/rdc')
-rw-r--r-- | drivers/net/ethernet/rdc/r6040.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/ethernet/rdc/r6040.c b/drivers/net/ethernet/rdc/r6040.c index 819b74cefd64..cd045ecb9816 100644 --- a/drivers/net/ethernet/rdc/r6040.c +++ b/drivers/net/ethernet/rdc/r6040.c | |||
@@ -270,11 +270,6 @@ static int r6040_mdiobus_write(struct mii_bus *bus, int phy_addr, | |||
270 | return r6040_phy_write(ioaddr, phy_addr, reg, value); | 270 | return r6040_phy_write(ioaddr, phy_addr, reg, value); |
271 | } | 271 | } |
272 | 272 | ||
273 | static int r6040_mdiobus_reset(struct mii_bus *bus) | ||
274 | { | ||
275 | return 0; | ||
276 | } | ||
277 | |||
278 | static void r6040_free_txbufs(struct net_device *dev) | 273 | static void r6040_free_txbufs(struct net_device *dev) |
279 | { | 274 | { |
280 | struct r6040_private *lp = netdev_priv(dev); | 275 | struct r6040_private *lp = netdev_priv(dev); |
@@ -1191,7 +1186,6 @@ static int r6040_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1191 | lp->mii_bus->priv = dev; | 1186 | lp->mii_bus->priv = dev; |
1192 | lp->mii_bus->read = r6040_mdiobus_read; | 1187 | lp->mii_bus->read = r6040_mdiobus_read; |
1193 | lp->mii_bus->write = r6040_mdiobus_write; | 1188 | lp->mii_bus->write = r6040_mdiobus_write; |
1194 | lp->mii_bus->reset = r6040_mdiobus_reset; | ||
1195 | lp->mii_bus->name = "r6040_eth_mii"; | 1189 | lp->mii_bus->name = "r6040_eth_mii"; |
1196 | snprintf(lp->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x", | 1190 | snprintf(lp->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x", |
1197 | dev_name(&pdev->dev), card_idx); | 1191 | dev_name(&pdev->dev), card_idx); |