atheros: add kernel 2.6.35 preliminary support
[openwrt.git] / target / linux / ar7 / patches-2.6.32 / 950-cpmac_fallback_switch.patch
1 --- a/drivers/net/cpmac.c
2 +++ b/drivers/net/cpmac.c
3 @@ -1132,8 +1132,9 @@ static int __devinit cpmac_probe(struct
4 }
5
6 if (phy_id == PHY_MAX_ADDR) {
7 - dev_err(&pdev->dev, "no PHY present\n");
8 - return -ENODEV;
9 + dev_err(&pdev->dev, "no PHY present, falling back to switch mode\n");
10 + strncpy(mdio_bus_id, "0", MII_BUS_ID_SIZE); /* fixed phys bus */
11 + phy_id = pdev->id;
12 }
13
14 dev = alloc_etherdev_mq(sizeof(*priv), CPMAC_QUEUES);
This page took 0.042465 seconds and 5 git commands to generate.