diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-01-09 18:59:09 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-01-10 19:35:00 -0500 |
commit | f74299b6c1d01363adf356c9ecc01ba000a5a1aa (patch) | |
tree | eb3be20c38ebe2cea6dc202a41cd8f83a3e6b622 /drivers/net/ethernet/amd/au1000_eth.c | |
parent | 75432fd2913e03696f56289a853754ef0124545f (diff) |
au1000-eth: 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/amd/au1000_eth.c')
-rw-r--r-- | drivers/net/ethernet/amd/au1000_eth.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/amd/au1000_eth.c b/drivers/net/ethernet/amd/au1000_eth.c index cc9262be69c8..8b95dd314253 100644 --- a/drivers/net/ethernet/amd/au1000_eth.c +++ b/drivers/net/ethernet/amd/au1000_eth.c | |||
@@ -1171,7 +1171,8 @@ static int __devinit au1000_probe(struct platform_device *pdev) | |||
1171 | aup->mii_bus->write = au1000_mdiobus_write; | 1171 | aup->mii_bus->write = au1000_mdiobus_write; |
1172 | aup->mii_bus->reset = au1000_mdiobus_reset; | 1172 | aup->mii_bus->reset = au1000_mdiobus_reset; |
1173 | aup->mii_bus->name = "au1000_eth_mii"; | 1173 | aup->mii_bus->name = "au1000_eth_mii"; |
1174 | snprintf(aup->mii_bus->id, MII_BUS_ID_SIZE, "%x", aup->mac_id); | 1174 | snprintf(aup->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x", |
1175 | pdev->name, aup->mac_id); | ||
1175 | aup->mii_bus->irq = kmalloc(sizeof(int)*PHY_MAX_ADDR, GFP_KERNEL); | 1176 | aup->mii_bus->irq = kmalloc(sizeof(int)*PHY_MAX_ADDR, GFP_KERNEL); |
1176 | if (aup->mii_bus->irq == NULL) | 1177 | if (aup->mii_bus->irq == NULL) |
1177 | goto err_out; | 1178 | goto err_out; |