aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-01-09 18:59:27 -0500
committerDavid S. Miller <davem@davemloft.net>2012-01-10 19:35:02 -0500
commitd6c25beba35a76c002bff9235484d75a6f8e7e6b (patch)
tree30cca470f12d3eed947f4d8ee816bed23307d10f /drivers/net/phy
parenta77e929a24ccf5a8545266a0c247e5ae862f13ba (diff)
mdio-octeon: use an unique MDIO bus name.
Signed-off-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r--drivers/net/phy/mdio-octeon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/phy/mdio-octeon.c b/drivers/net/phy/mdio-octeon.c
index bd12ba941be5..826d961f39f7 100644
--- a/drivers/net/phy/mdio-octeon.c
+++ b/drivers/net/phy/mdio-octeon.c
@@ -118,7 +118,8 @@ static int __devinit octeon_mdiobus_probe(struct platform_device *pdev)
118 bus->mii_bus->priv = bus; 118 bus->mii_bus->priv = bus;
119 bus->mii_bus->irq = bus->phy_irq; 119 bus->mii_bus->irq = bus->phy_irq;
120 bus->mii_bus->name = "mdio-octeon"; 120 bus->mii_bus->name = "mdio-octeon";
121 snprintf(bus->mii_bus->id, MII_BUS_ID_SIZE, "%x", bus->unit); 121 snprintf(bus->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x",
122 bus->mii_bus->name, bus->unit);
122 bus->mii_bus->parent = &pdev->dev; 123 bus->mii_bus->parent = &pdev->dev;
123 124
124 bus->mii_bus->read = octeon_mdiobus_read; 125 bus->mii_bus->read = octeon_mdiobus_read;