aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-01-09 23:59:19 +0000
committerDavid S. Miller <davem@davemloft.net>2012-01-10 16:35:01 -0800
commit09ef0789bbceb0fe89ce4ad2bb1fdb2b937d3eba (patch)
treee238daa543759a37143ed42591304d29320f493b
parent859ad35e711d95f2794ab2196aac7c45fe5f7cfe (diff)
downloadkernel_goldelico_gta04-09ef0789bbceb0fe89ce4ad2bb1fdb2b937d3eba.zip
kernel_goldelico_gta04-09ef0789bbceb0fe89ce4ad2bb1fdb2b937d3eba.tar.gz
kernel_goldelico_gta04-09ef0789bbceb0fe89ce4ad2bb1fdb2b937d3eba.tar.bz2
smsc911x: 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/smsc/smsc911x.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/smsc/smsc911x.c b/drivers/net/ethernet/smsc/smsc911x.c
index 9d0b8ce..24d2df0 100644
--- a/drivers/net/ethernet/smsc/smsc911x.c
+++ b/drivers/net/ethernet/smsc/smsc911x.c
@@ -1044,7 +1044,8 @@ static int __devinit smsc911x_mii_init(struct platform_device *pdev,
}
pdata->mii_bus->name = SMSC_MDIONAME;
- snprintf(pdata->mii_bus->id, MII_BUS_ID_SIZE, "%x", pdev->id);
+ snprintf(pdata->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x",
+ pdev->name, pdev->id);
pdata->mii_bus->priv = pdata;
pdata->mii_bus->read = smsc911x_mii_read;
pdata->mii_bus->write = smsc911x_mii_write;