diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-01-09 18:59:10 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-01-10 19:35:00 -0500 |
commit | 446bbc4b5ee122c3a3a4954b144d031f0f9aa006 (patch) | |
tree | 6d4b806e6eadab525a615aefbd15b2b9c58ebec5 | |
parent | f74299b6c1d01363adf356c9ecc01ba000a5a1aa (diff) |
sb1250: use an unique MDIO bus name.
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/broadcom/sb1250-mac.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/sb1250-mac.c b/drivers/net/ethernet/broadcom/sb1250-mac.c index 8fa7abc53ec6..084904ceaa30 100644 --- a/drivers/net/ethernet/broadcom/sb1250-mac.c +++ b/drivers/net/ethernet/broadcom/sb1250-mac.c | |||
@@ -2259,7 +2259,8 @@ static int sbmac_init(struct platform_device *pldev, long long base) | |||
2259 | } | 2259 | } |
2260 | 2260 | ||
2261 | sc->mii_bus->name = sbmac_mdio_string; | 2261 | sc->mii_bus->name = sbmac_mdio_string; |
2262 | snprintf(sc->mii_bus->id, MII_BUS_ID_SIZE, "%x", idx); | 2262 | snprintf(sc->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x", |
2263 | pldev->name, idx); | ||
2263 | sc->mii_bus->priv = sc; | 2264 | sc->mii_bus->priv = sc; |
2264 | sc->mii_bus->read = sbmac_mii_read; | 2265 | sc->mii_bus->read = sbmac_mii_read; |
2265 | sc->mii_bus->write = sbmac_mii_write; | 2266 | sc->mii_bus->write = sbmac_mii_write; |