Commit 5cab2733 authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller

fs_enet: remove empty MDIO bus function

fs_enet_fec_mii_reset() does nothing useful and is optional for the MDIO
bus code, so let's just remove it.
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fe29bd8d
...@@ -95,12 +95,6 @@ static int fs_enet_fec_mii_write(struct mii_bus *bus, int phy_id, int location, ...@@ -95,12 +95,6 @@ static int fs_enet_fec_mii_write(struct mii_bus *bus, int phy_id, int location,
} }
static int fs_enet_fec_mii_reset(struct mii_bus *bus)
{
/* nothing here - for now */
return 0;
}
static struct of_device_id fs_enet_mdio_fec_match[]; static struct of_device_id fs_enet_mdio_fec_match[];
static int fs_enet_mdio_probe(struct platform_device *ofdev) static int fs_enet_mdio_probe(struct platform_device *ofdev)
{ {
...@@ -128,7 +122,6 @@ static int fs_enet_mdio_probe(struct platform_device *ofdev) ...@@ -128,7 +122,6 @@ static int fs_enet_mdio_probe(struct platform_device *ofdev)
new_bus->name = "FEC MII Bus"; new_bus->name = "FEC MII Bus";
new_bus->read = &fs_enet_fec_mii_read; new_bus->read = &fs_enet_fec_mii_read;
new_bus->write = &fs_enet_fec_mii_write; new_bus->write = &fs_enet_fec_mii_write;
new_bus->reset = &fs_enet_fec_mii_reset;
ret = of_address_to_resource(ofdev->dev.of_node, 0, &res); ret = of_address_to_resource(ofdev->dev.of_node, 0, &res);
if (ret) if (ret)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment