diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-01-09 18:59:07 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-01-10 19:35:00 -0500 |
commit | fa84e7201c592945b390fb51a5ffc7e785868be4 (patch) | |
tree | 13091b56438081a04901708f7899f02515f96685 /drivers/net | |
parent | 71bc5d94061516c4e70303570128797bcf768b10 (diff) |
ax88796: 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')
-rw-r--r-- | drivers/net/ethernet/8390/ax88796.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/8390/ax88796.c b/drivers/net/ethernet/8390/ax88796.c index 9e8ba4f5636b..0f92e3567f68 100644 --- a/drivers/net/ethernet/8390/ax88796.c +++ b/drivers/net/ethernet/8390/ax88796.c | |||
@@ -623,7 +623,8 @@ static int ax_mii_init(struct net_device *dev) | |||
623 | 623 | ||
624 | ax->mii_bus->name = "ax88796_mii_bus"; | 624 | ax->mii_bus->name = "ax88796_mii_bus"; |
625 | ax->mii_bus->parent = dev->dev.parent; | 625 | ax->mii_bus->parent = dev->dev.parent; |
626 | snprintf(ax->mii_bus->id, MII_BUS_ID_SIZE, "%x", pdev->id); | 626 | snprintf(ax->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x", |
627 | pdev->name, pdev->id); | ||
627 | 628 | ||
628 | ax->mii_bus->irq = kmalloc(sizeof(int) * PHY_MAX_ADDR, GFP_KERNEL); | 629 | ax->mii_bus->irq = kmalloc(sizeof(int) * PHY_MAX_ADDR, GFP_KERNEL); |
629 | if (!ax->mii_bus->irq) { | 630 | if (!ax->mii_bus->irq) { |