mv643xx-eth: use an unique MDIO bus name.
Signed-off-by: Florian Fainelli <florian@openwrt.org> Acked-by: Lennert Buytenhek <buytenh@wantstofly.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d1b86507d8
commit
12322431d1
@ -2613,7 +2613,8 @@ static int mv643xx_eth_shared_probe(struct platform_device *pdev)
|
||||
msp->smi_bus->name = "mv643xx_eth smi";
|
||||
msp->smi_bus->read = smi_bus_read;
|
||||
msp->smi_bus->write = smi_bus_write,
|
||||
snprintf(msp->smi_bus->id, MII_BUS_ID_SIZE, "%d", pdev->id);
|
||||
snprintf(msp->smi_bus->id, MII_BUS_ID_SIZE, "%s-%d",
|
||||
pdev->name, pdev->id);
|
||||
msp->smi_bus->parent = &pdev->dev;
|
||||
msp->smi_bus->phy_mask = 0xffffffff;
|
||||
if (mdiobus_register(msp->smi_bus) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user