提交 859ad35e 编写于 作者: F Florian Fainelli 提交者: David S. Miller

s6gmac: use an unique MDIO bus name.

Signed-off-by: NFlorian Fainelli <florian@openwrt.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 5278fb54
...@@ -1004,7 +1004,7 @@ static int __devinit s6gmac_probe(struct platform_device *pdev) ...@@ -1004,7 +1004,7 @@ static int __devinit s6gmac_probe(struct platform_device *pdev)
mb->write = s6mii_write; mb->write = s6mii_write;
mb->reset = s6mii_reset; mb->reset = s6mii_reset;
mb->priv = pd; mb->priv = pd;
snprintf(mb->id, MII_BUS_ID_SIZE, "0"); snprintf(mb->id, MII_BUS_ID_SIZE, "%s-%x", pdev->name, pdev->id);
mb->phy_mask = ~(1 << 0); mb->phy_mask = ~(1 << 0);
mb->irq = &pd->mii.irq[0]; mb->irq = &pd->mii.irq[0];
for (i = 0; i < PHY_MAX_ADDR; i++) { for (i = 0; i < PHY_MAX_ADDR; i++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册