aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-01-04 03:50:40 -0500
committerDavid S. Miller <davem@davemloft.net>2012-01-04 15:55:52 -0500
commit817380e1d05534880a99d84a47cc5a2df111030d (patch)
tree3b8b3fb7ad9cbf18fbfec8be1f1291ddcf4d03b7 /drivers
parente6bff995f8fe78f74cbe8f14bf6a31f3560b9ce4 (diff)
r6040: use an unique MDIO bus name
We should use an unique MDIO bus name which does not clash with anything else in the system like the Fixed MDIO bus. The bus is now named: r6040-<card number> which is unique in the system. Reported-by: Vladimir Kolpakov <vova.kolpakov@gmail.com> Signed-off-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/rdc/r6040.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/rdc/r6040.c b/drivers/net/ethernet/rdc/r6040.c
index 4bf68cfef390..a63b23fa6f20 100644
--- a/drivers/net/ethernet/rdc/r6040.c
+++ b/drivers/net/ethernet/rdc/r6040.c
@@ -1188,7 +1188,8 @@ static int __devinit r6040_init_one(struct pci_dev *pdev,
1188 lp->mii_bus->write = r6040_mdiobus_write; 1188 lp->mii_bus->write = r6040_mdiobus_write;
1189 lp->mii_bus->reset = r6040_mdiobus_reset; 1189 lp->mii_bus->reset = r6040_mdiobus_reset;
1190 lp->mii_bus->name = "r6040_eth_mii"; 1190 lp->mii_bus->name = "r6040_eth_mii";
1191 snprintf(lp->mii_bus->id, MII_BUS_ID_SIZE, "%x", card_idx); 1191 snprintf(lp->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x",
1192 dev_name(&pdev->dev), card_idx);
1192 lp->mii_bus->irq = kmalloc(sizeof(int)*PHY_MAX_ADDR, GFP_KERNEL); 1193 lp->mii_bus->irq = kmalloc(sizeof(int)*PHY_MAX_ADDR, GFP_KERNEL);
1193 if (!lp->mii_bus->irq) { 1194 if (!lp->mii_bus->irq) {
1194 dev_err(&pdev->dev, "mii_bus irq allocation failed\n"); 1195 dev_err(&pdev->dev, "mii_bus irq allocation failed\n");