Commit 5a05a820 authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller

davinci_emac: use an unique MDIO bus name.

Signed-off-by: default avatarFlorian Fainelli <florian@openwrt.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d1733f07
...@@ -313,7 +313,8 @@ static int __devinit davinci_mdio_probe(struct platform_device *pdev) ...@@ -313,7 +313,8 @@ static int __devinit davinci_mdio_probe(struct platform_device *pdev)
data->bus->reset = davinci_mdio_reset, data->bus->reset = davinci_mdio_reset,
data->bus->parent = dev; data->bus->parent = dev;
data->bus->priv = data; 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); data->clk = clk_get(dev, NULL);
if (IS_ERR(data->clk)) { if (IS_ERR(data->clk)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment