]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
pxa168-eth: use an unique MDIO bus name.
authorFlorian Fainelli <florian@openwrt.org>
Mon, 9 Jan 2012 23:59:16 +0000 (23:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jan 2012 00:35:01 +0000 (16:35 -0800)
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/pxa168_eth.c

index 5ec409e3da090d6657afb2bf45e5ffa6d4e339e4..953ba5851f7b44174f2800a163214409cc7ebb3a 100644 (file)
@@ -1552,7 +1552,8 @@ static int pxa168_eth_probe(struct platform_device *pdev)
        pep->smi_bus->name = "pxa168_eth smi";
        pep->smi_bus->read = pxa168_smi_read;
        pep->smi_bus->write = pxa168_smi_write;
-       snprintf(pep->smi_bus->id, MII_BUS_ID_SIZE, "%d", pdev->id);
+       snprintf(pep->smi_bus->id, MII_BUS_ID_SIZE, "%s-%d",
+               pdev->name, pdev->id);
        pep->smi_bus->parent = &pdev->dev;
        pep->smi_bus->phy_mask = 0xffffffff;
        err = mdiobus_register(pep->smi_bus);