projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f74299b
)
sb1250: use an unique MDIO bus name.
author
Florian Fainelli
<
[email protected]
>
Mon, 9 Jan 2012 23:59:10 +0000
(23:59 +0000)
committer
David S. Miller
<
[email protected]
>
Wed, 11 Jan 2012 00:35:00 +0000
(16:35 -0800)
Signed-off-by: Florian Fainelli <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/broadcom/sb1250-mac.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/broadcom/sb1250-mac.c
b/drivers/net/ethernet/broadcom/sb1250-mac.c
index 8fa7abc53ec69a38fce149dbf37acb5eca2a2cf1..084904ceaa301b4fd76f00a8411433ec1711b49e 100644
(file)
--- 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)
}
sc->mii_bus->name = sbmac_mdio_string;
- snprintf(sc->mii_bus->id, MII_BUS_ID_SIZE, "%x", idx);
+ snprintf(sc->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x",
+ pldev->name, idx);
sc->mii_bus->priv = sc;
sc->mii_bus->read = sbmac_mii_read;
sc->mii_bus->write = sbmac_mii_write;