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:
parent
859ad35e71
commit
09ef0789bb
|
@ -1044,7 +1044,8 @@ static int __devinit smsc911x_mii_init(struct platform_device *pdev,
|
|||
}
|
||||
|
||||
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->read = smsc911x_mii_read;
|
||||
pdata->mii_bus->write = smsc911x_mii_write;
|
||||
|
|
Loading…
Reference in New Issue