1 --- a/arch/mips/ar7/platform.c
2 +++ b/arch/mips/ar7/platform.c
4 #include <linux/string.h>
5 #include <linux/etherdevice.h>
7 -#include <linux/phy_fixed.h>
8 #include <linux/gpio.h>
11 @@ -370,12 +369,6 @@ static struct resource cpmac_high_res_ti
15 -static struct fixed_phy_status fixed_phy_status __initdata = {
21 static struct plat_cpmac_data cpmac_low_data = {
24 @@ -769,16 +762,13 @@ static int __init ar7_register_devices(v
27 if (ar7_has_high_cpmac()) {
28 - fixed_phy_add(PHY_POLL, ar7_is_titan() ? cpmac_high_titan.id : cpmac_high.id,
31 - cpmac_get_mac(1, ar7_is_titan() ? cpmac_high_data_titan.dev_addr :
32 + cpmac_get_mac(1, ar7_is_titan() ? cpmac_high_data_titan.dev_addr :
33 cpmac_high_data.dev_addr);
34 - res = platform_device_register(ar7_is_titan() ? &cpmac_high_titan :
35 + res = platform_device_register(ar7_is_titan() ? &cpmac_high_titan :
38 - pr_warning("unable to register cpmac-high: %d\n", res);
41 + pr_warning("unable to register cpmac-high: %d\n", res);
43 pr_warning("unable to add cpmac-high phy: %d\n", res);
46 @@ -787,16 +777,13 @@ static int __init ar7_register_devices(v
47 cpmac_low_data.phy_mask = 0xffffffff;
50 - res = fixed_phy_add(PHY_POLL, ar7_is_titan() ? cpmac_low_titan.id : cpmac_low.id,
53 - cpmac_get_mac(0, ar7_is_titan() ? cpmac_low_data_titan.dev_addr :
54 + cpmac_get_mac(0, ar7_is_titan() ? cpmac_low_data_titan.dev_addr :
55 cpmac_low_data.dev_addr);
56 - res = platform_device_register(ar7_is_titan() ? &cpmac_low_titan :
57 + res = platform_device_register(ar7_is_titan() ? &cpmac_low_titan :
60 - pr_warning("unable to register cpmac-low: %d\n", res);
63 + pr_warning("unable to register cpmac-low: %d\n", res);
65 pr_warning("unable to add cpmac-low phy: %d\n", res);
68 --- a/drivers/net/cpmac.c
69 +++ b/drivers/net/cpmac.c
70 @@ -1273,7 +1273,7 @@ int __devinit cpmac_init(void)
73 cpmac_mii->phy_mask = ar7_is_titan()? ~(mask | 0x80000000 | 0x40000000):
74 - ~(mask | 0x80000000);
75 + ~(mask | 0x80000001);
76 snprintf(cpmac_mii->id, MII_BUS_ID_SIZE, "1");
78 res = mdiobus_register(cpmac_mii);