|
@@ -1416,7 +1416,8 @@ static int __devinit eth_init_one(struct platform_device *pdev)
|
|
|
__raw_writel(DEFAULT_CORE_CNTRL, &port->regs->core_control);
|
|
|
udelay(50);
|
|
|
|
|
|
- snprintf(phy_id, MII_BUS_ID_SIZE + 3, PHY_ID_FMT, "0", plat->phy);
|
|
|
+ snprintf(phy_id, MII_BUS_ID_SIZE + 3, PHY_ID_FMT,
|
|
|
+ mdio_bus->id, plat->phy);
|
|
|
port->phydev = phy_connect(dev, phy_id, &ixp4xx_adjust_link, 0,
|
|
|
PHY_INTERFACE_MODE_MII);
|
|
|
if (IS_ERR(port->phydev)) {
|