Skip to content

Commit

Permalink
dnet: use an unique MDIO bus name.
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Florian Fainelli authored and David S. Miller committed Jan 11, 2012
1 parent 98d5e57 commit 63f6783
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/ethernet/dnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 63f6783

Please sign in to comment.