ar7: remove useless chunks from a patch
[openwrt/svn-archive/archive.git] / target / linux / ar7 / patches-2.6.24 / 170-cpmac_phy_fix.diff
1 diff -pruN linux-2.6.24.2.old/drivers/net/cpmac.c linux-2.6.24.2/drivers/net/cpmac.c
2 --- linux-2.6.24.2.old/drivers/net/cpmac.c 2008-03-20 20:33:01.000000000 +0100
3 +++ linux-2.6.24.2/drivers/net/cpmac.c 2008-03-20 20:47:31.000000000 +0100
4 @@ -1178,9 +1179,7 @@ static int __devinit cpmac_probe(struct
5 priv->msg_enable = netif_msg_init(debug_level, 0xff);
6 memcpy(dev->dev_addr, pdata->dev_addr, sizeof(dev->dev_addr));
7
8 - snprintf(priv->phy_name, BUS_ID_SIZE, PHY_ID_FMT, mdio_bus_id, phy_id);
9 -
10 - priv->phy = phy_connect(dev, priv->phy_name, &cpmac_adjust_link, 0,
11 + priv->phy = phy_connect(dev, cpmac_mii.phy_map[phy_id]->dev.bus_id, &cpmac_adjust_link, 0,
12 PHY_INTERFACE_MODE_MII);
13 if (IS_ERR(priv->phy)) {
14 if (netif_msg_drv(priv))