aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/dnet.c
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-01-09 23:59:12 +0000
committerDavid S. Miller <davem@davemloft.net>2012-01-10 16:35:00 -0800
commit63f678301fb952c2d758d9ded4ed88c1da6c0c50 (patch)
treed30d434b3d7e2482c79f3d713bd41c67dbc22fe2 /drivers/net/ethernet/dnet.c
parentmacb: use an unique MDIO bus name. (diff)
downloadlinux-dev-63f678301fb952c2d758d9ded4ed88c1da6c0c50.tar.xz
linux-dev-63f678301fb952c2d758d9ded4ed88c1da6c0c50.zip
dnet: use an unique MDIO bus name.
Signed-off-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/dnet.c')
-rw-r--r--drivers/net/ethernet/dnet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/dnet.c b/drivers/net/ethernet/dnet.c
index ce88c0f399f6..925c9bafc9b9 100644
--- a/drivers/net/ethernet/dnet.c
+++ b/drivers/net/ethernet/dnet.c
@@ -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;