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

index 6116887d2880b6d8b725d4fa8f318d91bc74cb06..ca97005e24b41217849beaf4b9a578fbaf1f2027 100644 (file)
@@ -199,11 +199,6 @@ static int macb_mdio_write(struct mii_bus *bus, int mii_id, int regnum,
        return 0;
 }
 
-static int macb_mdio_reset(struct mii_bus *bus)
-{
-       return 0;
-}
-
 /**
  * macb_set_tx_clk() - Set a clock to a new frequency
  * @clk                Pointer to the clock to change
@@ -375,7 +370,6 @@ int macb_mii_init(struct macb *bp)
        bp->mii_bus->name = "MACB_mii_bus";
        bp->mii_bus->read = &macb_mdio_read;
        bp->mii_bus->write = &macb_mdio_write;
-       bp->mii_bus->reset = &macb_mdio_reset;
        snprintf(bp->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x",
                bp->pdev->name, bp->pdev->id);
        bp->mii_bus->priv = bp;
This page took 0.025749 seconds and 5 git commands to generate.