dnet: 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
98d5e57eaf
commit
63f678301f
1 changed files with 2 additions and 1 deletions
|
@ -325,7 +325,8 @@ static int dnet_mii_init(struct dnet *bp)
|
|||
bp->mii_bus->write = &dnet_mdio_write;
|
||||
bp->mii_bus->reset = &dnet_mdio_reset;
|
||||
|
||||
snprintf(bp->mii_bus->id, MII_BUS_ID_SIZE, "%x", 0);
|
||||
snprintf(bp->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x",
|
||||
bp->pdev->name, bp->pdev->id);
|
||||
|
||||
bp->mii_bus->priv = bp;
|
||||
|
||||
|
|
Loading…
Reference in a new issue