diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-01-09 23:59:22 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-01-10 16:35:01 -0800 |
commit | 5a05a8200a4359ef2bfe9094c137dee35cfdd516 (patch) | |
tree | 398018bc13ea0295781219bd0e40705ff9c2d372 /drivers/net | |
parent | d1733f078b1b3777fed8e8fe598e7f10f28f59fb (diff) |
davinci_emac: 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')
-rw-r--r-- | drivers/net/ethernet/ti/davinci_mdio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ti/davinci_mdio.c b/drivers/net/ethernet/ti/davinci_mdio.c index 7615040df756..ef7c9c17bfff 100644 --- a/drivers/net/ethernet/ti/davinci_mdio.c +++ b/drivers/net/ethernet/ti/davinci_mdio.c @@ -313,7 +313,8 @@ static int __devinit davinci_mdio_probe(struct platform_device *pdev) data->bus->reset = davinci_mdio_reset, data->bus->parent = dev; data->bus->priv = data; - snprintf(data->bus->id, MII_BUS_ID_SIZE, "%x", pdev->id); + snprintf(data->bus->id, MII_BUS_ID_SIZE, "%s-%x", + pdev->name, pdev->id); data->clk = clk_get(dev, NULL); if (IS_ERR(data->clk)) { |