2010-03-26 10:45:25 +00:00
|
|
|
--- a/drivers/net/cpmac.c
|
|
|
|
+++ b/drivers/net/cpmac.c
|
2010-08-22 17:08:47 +00:00
|
|
|
@@ -1132,8 +1132,9 @@ static int __devinit cpmac_probe(struct
|
2010-03-06 22:33:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (phy_id == PHY_MAX_ADDR) {
|
|
|
|
- dev_err(&pdev->dev, "no PHY present\n");
|
|
|
|
- return -ENODEV;
|
|
|
|
+ dev_err(&pdev->dev, "no PHY present, falling back to switch mode\n");
|
|
|
|
+ strncpy(mdio_bus_id, "0", MII_BUS_ID_SIZE); /* fixed phys bus */
|
|
|
|
+ phy_id = pdev->id;
|
|
|
|
}
|
|
|
|
|
|
|
|
dev = alloc_etherdev_mq(sizeof(*priv), CPMAC_QUEUES);
|