smsc911x: use an unique MDIO bus name.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Florian Fainelli 2012-01-09 23:59:19 +00:00 committed by David S. Miller
parent 859ad35e71
commit 09ef0789bb
1 changed files with 2 additions and 1 deletions

View File

@ -1044,7 +1044,8 @@ static int __devinit smsc911x_mii_init(struct platform_device *pdev,
} }
pdata->mii_bus->name = SMSC_MDIONAME; pdata->mii_bus->name = SMSC_MDIONAME;
snprintf(pdata->mii_bus->id, MII_BUS_ID_SIZE, "%x", pdev->id); snprintf(pdata->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x",
pdev->name, pdev->id);
pdata->mii_bus->priv = pdata; pdata->mii_bus->priv = pdata;
pdata->mii_bus->read = smsc911x_mii_read; pdata->mii_bus->read = smsc911x_mii_read;
pdata->mii_bus->write = smsc911x_mii_write; pdata->mii_bus->write = smsc911x_mii_write;