aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ethoc.c
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2014-03-26 21:07:17 -0400
committerDavid S. Miller <davem@davemloft.net>2014-03-28 01:38:02 -0400
commit6da4dc629b8e20332570cca9e29a1d83b83464e5 (patch)
tree3d85d29f33acea2f7933912bf897023a4f3c0ddd /drivers/net/ethernet/ethoc.c
parent89e158f909253d8c7c2a65d1b2cbac2f07a28ed0 (diff)
net: ethoc: remove empty MDIO bus function
ethoc_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/ethoc.c')
-rw-r--r--drivers/net/ethernet/ethoc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/ethernet/ethoc.c b/drivers/net/ethernet/ethoc.c
index 55e0fa03dc90..8b70ca7e342b 100644
--- a/drivers/net/ethernet/ethoc.c
+++ b/drivers/net/ethernet/ethoc.c
@@ -660,11 +660,6 @@ static int ethoc_mdio_write(struct mii_bus *bus, int phy, int reg, u16 val)
660 return -EBUSY; 660 return -EBUSY;
661} 661}
662 662
663static int ethoc_mdio_reset(struct mii_bus *bus)
664{
665 return 0;
666}
667
668static void ethoc_mdio_poll(struct net_device *dev) 663static void ethoc_mdio_poll(struct net_device *dev)
669{ 664{
670} 665}
@@ -1210,7 +1205,6 @@ static int ethoc_probe(struct platform_device *pdev)
1210 priv->mdio->name, pdev->id); 1205 priv->mdio->name, pdev->id);
1211 priv->mdio->read = ethoc_mdio_read; 1206 priv->mdio->read = ethoc_mdio_read;
1212 priv->mdio->write = ethoc_mdio_write; 1207 priv->mdio->write = ethoc_mdio_write;
1213 priv->mdio->reset = ethoc_mdio_reset;
1214 priv->mdio->priv = priv; 1208 priv->mdio->priv = priv;
1215 1209
1216 priv->mdio->irq = kmalloc(sizeof(int) * PHY_MAX_ADDR, GFP_KERNEL); 1210 priv->mdio->irq = kmalloc(sizeof(int) * PHY_MAX_ADDR, GFP_KERNEL);