summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/adi
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-01-09 23:59:08 +0000
committerDavid S. Miller <davem@davemloft.net>2012-01-10 16:35:00 -0800
commit75432fd2913e03696f56289a853754ef0124545f (patch)
treeeeb14fbb8e09732f1931117efc4e4a8fb2551dc0 /drivers/net/ethernet/adi
parentfa84e7201c592945b390fb51a5ffc7e785868be4 (diff)
downloadlinux-stable-75432fd2913e03696f56289a853754ef0124545f.tar.gz
linux-stable-75432fd2913e03696f56289a853754ef0124545f.tar.bz2
linux-stable-75432fd2913e03696f56289a853754ef0124545f.zip
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/ethernet/adi')
-rw-r--r--drivers/net/ethernet/adi/bfin_mac.c3
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)
miibus->name = "bfin_mii_bus";
miibus->phy_mask = mii_bus_pd->phy_mask;
- snprintf(miibus->id, MII_BUS_ID_SIZE, "0");
+ snprintf(miibus->id, MII_BUS_ID_SIZE, "%s-%x",
+ pdev->name, pdev->id);
miibus->irq = kmalloc(sizeof(int)*PHY_MAX_ADDR, GFP_KERNEL);
if (!miibus->irq)
goto out_err_irq_alloc;