From: Florian Fainelli Date: Mon, 9 Jan 2012 23:59:27 +0000 (+0000) Subject: mdio-octeon: use an unique MDIO bus name. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d6c25beba35a76c002bff9235484d75a6f8e7e6b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mdio-octeon: use an unique MDIO bus name. Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller --- 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) bus->mii_bus->priv = bus; bus->mii_bus->irq = bus->phy_irq; bus->mii_bus->name = "mdio-octeon"; - snprintf(bus->mii_bus->id, MII_BUS_ID_SIZE, "%x", bus->unit); + snprintf(bus->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x", + bus->mii_bus->name, bus->unit); bus->mii_bus->parent = &pdev->dev; bus->mii_bus->read = octeon_mdiobus_read;