[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1326189567-21663-14-git-send-email-florian@openwrt.org>
Date: Tue, 10 Jan 2012 10:59:19 +0100
From: Florian Fainelli <florian@...nwrt.org>
To: netdev@...r.kernel.org
Cc: Florian Fainelli <florian@...nwrt.org>,
Steve Glendinning <steve.glendinning@...c.com>,
linux-kernel@...r.kernel.org
Subject: [PATCH 13/21] smsc911x: use an unique MDIO bus name.
Signed-off-by: Florian Fainelli <florian@...nwrt.org>
---
drivers/net/ethernet/smsc/smsc911x.c | 3 ++-
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;
--
1.7.5.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists