Fix remaining bug of the off-by-one error ;)
[openwrt.git] / target / linux / ar7 / patches-2.6.25 / 170-cpmac_eth_fix.patch
1 --- a/drivers/net/cpmac.c
2 +++ b/drivers/net/cpmac.c
3 @@ -1178,9 +1178,7 @@
4 priv->msg_enable = netif_msg_init(debug_level, 0xff);
5 memcpy(dev->dev_addr, pdata->dev_addr, sizeof(dev->dev_addr));
6
7 - snprintf(priv->phy_name, BUS_ID_SIZE, PHY_ID_FMT, mdio_bus_id, phy_id);
8 -
9 - priv->phy = phy_connect(dev, priv->phy_name, &cpmac_adjust_link, 0,
10 + priv->phy = phy_connect(dev, cpmac_mii.phy_map[phy_id]->dev.bus_id, &cpmac_adjust_link, 0,
11 PHY_INTERFACE_MODE_MII);
12 if (IS_ERR(priv->phy)) {
13 if (netif_msg_drv(priv))
This page took 0.049408 seconds and 5 git commands to generate.