net: mvmdio: remove empty MDIO bus reset function
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 27 Mar 2014 01:07:20 +0000 (18:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Mar 2014 05:38:02 +0000 (01:38 -0400)
orion_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>
drivers/net/ethernet/marvell/mvmdio.c

index fd409d76b811487673c1cf038d9572c5f507f62a..b161a525fc5bd8accb44b002b64776f05d8d0319 100644 (file)
@@ -167,11 +167,6 @@ out:
        return ret;
 }
 
-static int orion_mdio_reset(struct mii_bus *bus)
-{
-       return 0;
-}
-
 static irqreturn_t orion_mdio_err_irq(int irq, void *dev_id)
 {
        struct orion_mdio_dev *dev = dev_id;
@@ -209,7 +204,6 @@ static int orion_mdio_probe(struct platform_device *pdev)
        bus->name = "orion_mdio_bus";
        bus->read = orion_mdio_read;
        bus->write = orion_mdio_write;
-       bus->reset = orion_mdio_reset;
        snprintf(bus->id, MII_BUS_ID_SIZE, "%s-mii",
                 dev_name(&pdev->dev));
        bus->parent = &pdev->dev;