diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-01-09 18:59:08 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-01-10 19:35:00 -0500 |
commit | 75432fd2913e03696f56289a853754ef0124545f (patch) | |
tree | eeb14fbb8e09732f1931117efc4e4a8fb2551dc0 /drivers/net | |
parent | fa84e7201c592945b390fb51a5ffc7e785868be4 (diff) |
bfin_mac: 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/adi/bfin_mac.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/adi/bfin_mac.c b/drivers/net/ethernet/adi/bfin_mac.c index b6d69c91db96..d812a103e032 100644 --- a/drivers/net/ethernet/adi/bfin_mac.c +++ b/drivers/net/ethernet/adi/bfin_mac.c | |||
@@ -1670,7 +1670,8 @@ static int __devinit bfin_mii_bus_probe(struct platform_device *pdev) | |||
1670 | miibus->name = "bfin_mii_bus"; | 1670 | miibus->name = "bfin_mii_bus"; |
1671 | miibus->phy_mask = mii_bus_pd->phy_mask; | 1671 | miibus->phy_mask = mii_bus_pd->phy_mask; |
1672 | 1672 | ||
1673 | snprintf(miibus->id, MII_BUS_ID_SIZE, "0"); | 1673 | snprintf(miibus->id, MII_BUS_ID_SIZE, "%s-%x", |
1674 | pdev->name, pdev->id); | ||
1674 | miibus->irq = kmalloc(sizeof(int)*PHY_MAX_ADDR, GFP_KERNEL); | 1675 | miibus->irq = kmalloc(sizeof(int)*PHY_MAX_ADDR, GFP_KERNEL); |
1675 | if (!miibus->irq) | 1676 | if (!miibus->irq) |
1676 | goto out_err_irq_alloc; | 1677 | goto out_err_irq_alloc; |