diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-01-09 18:59:13 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-01-10 19:35:00 -0500 |
commit | 391420f7b829e73b26a543e39c40a83f7de6467c (patch) | |
tree | 47ec8646e97cee1af969c781cbd55853aa3bceec /drivers/net/ethernet/freescale/fec.c | |
parent | 63f678301fb952c2d758d9ded4ed88c1da6c0c50 (diff) |
fec: 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/freescale/fec.c')
-rw-r--r-- | drivers/net/ethernet/freescale/fec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/fec.c b/drivers/net/ethernet/freescale/fec.c index ddcbbb34d1b9..236cc892ec3e 100644 --- a/drivers/net/ethernet/freescale/fec.c +++ b/drivers/net/ethernet/freescale/fec.c | |||
@@ -1077,7 +1077,8 @@ static int fec_enet_mii_init(struct platform_device *pdev) | |||
1077 | fep->mii_bus->read = fec_enet_mdio_read; | 1077 | fep->mii_bus->read = fec_enet_mdio_read; |
1078 | fep->mii_bus->write = fec_enet_mdio_write; | 1078 | fep->mii_bus->write = fec_enet_mdio_write; |
1079 | fep->mii_bus->reset = fec_enet_mdio_reset; | 1079 | fep->mii_bus->reset = fec_enet_mdio_reset; |
1080 | snprintf(fep->mii_bus->id, MII_BUS_ID_SIZE, "%x", fep->dev_id + 1); | 1080 | snprintf(fep->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x", |
1081 | pdev->name, fep->dev_id + 1); | ||
1081 | fep->mii_bus->priv = fep; | 1082 | fep->mii_bus->priv = fep; |
1082 | fep->mii_bus->parent = &pdev->dev; | 1083 | fep->mii_bus->parent = &pdev->dev; |
1083 | 1084 | ||