提交 3e617506 编写于 作者: F Florian Fainelli 提交者: David S. Miller

bcm63xx_enet: use an unique MDIO bus name.

Signed-off-by: NFlorian Fainelli <florian@openwrt.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 0869b3a4
...@@ -1727,7 +1727,7 @@ static int __devinit bcm_enet_probe(struct platform_device *pdev) ...@@ -1727,7 +1727,7 @@ static int __devinit bcm_enet_probe(struct platform_device *pdev)
bus->priv = priv; bus->priv = priv;
bus->read = bcm_enet_mdio_read_phylib; bus->read = bcm_enet_mdio_read_phylib;
bus->write = bcm_enet_mdio_write_phylib; bus->write = bcm_enet_mdio_write_phylib;
sprintf(bus->id, "%d", priv->mac_id); sprintf(bus->id, "%s-%d", pdev->name, priv->mac_id);
/* only probe bus where we think the PHY is, because /* only probe bus where we think the PHY is, because
* the mdio read operation return 0 instead of 0xffff * the mdio read operation return 0 instead of 0xffff
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册