1 --- a/drivers/net/cpmac.c
2 +++ b/drivers/net/cpmac.c
4 #include <linux/skbuff.h>
7 -#include <linux/phy_fixed.h>
8 #include <linux/platform_device.h>
9 #include <linux/dma-mapping.h>
11 @@ -1104,8 +1103,6 @@ static const struct net_device_ops cpmac
12 .ndo_set_mac_address = eth_mac_addr,
15 -static int external_switch;
17 static int __devinit cpmac_probe(struct platform_device *pdev)
20 @@ -1127,10 +1124,8 @@ static int __devinit cpmac_probe(struct
23 if (phy_id == PHY_MAX_ADDR) {
24 - //This probably wont work as no fixed bus anymore.
25 - dev_err(&pdev->dev, "no PHY present, falling back to switch mode\n");
26 - strncpy(mdio_bus_id, "0", MII_BUS_ID_SIZE); /* fixed phys bus */
28 + dev_err(&pdev->dev, "no PHY present\n");
32 dev = alloc_etherdev_mq(sizeof(*priv), CPMAC_QUEUES);
33 @@ -1258,14 +1253,8 @@ int __devinit cpmac_init(void)
38 - if (mask & (mask - 1)) {
39 - external_switch = 1;
43 cpmac_mii->phy_mask = ar7_is_titan()? ~(mask | 0x80000000 | 0x40000000):
44 - ~(mask | 0x80000001);
45 + ~(mask | 0x80000000);
46 snprintf(cpmac_mii->id, MII_BUS_ID_SIZE, "1");
48 res = mdiobus_register(cpmac_mii);