ar71xx: fix a compiler warning
[oweals/openwrt.git] / target / linux / ar71xx / files / arch / mips / ar71xx / mach-all0258n.c
index 7c383f5b7a635652f130a91587a7b033a66ffe6a..18d0a93a971522bea5a59586dd51c3f0978702e1 100644 (file)
@@ -31,7 +31,6 @@
 #define ALL0258N_KEYS_DEBOUNCE_INTERVAL (3 * ALL0258N_KEYS_POLL_INTERVAL)
 
 /* showed up in the original firmware's bootlog */
-#define ALL0258N_LAN_PHYMASK BIT(4)
 #define ALL0258N_SEC_PHYMASK BIT(3)
 
 /*
@@ -66,7 +65,7 @@ static struct mtd_partition all0258n_partitions[] = {
        }, {
                .name           = "firmware",
                .offset         = 0x050000,
-               .size           = 0x630000,
+               .size           = 0x620000,
        }, {
                .name           = "art",
                .offset         = 0x7F0000,
@@ -127,14 +126,9 @@ static void __init all0258n_setup(void)
        ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac, 0);
        ar71xx_init_mac(ar71xx_eth1_data.mac_addr, mac, 0);
 
-       ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
-       ar71xx_eth0_data.phy_mask = ALL0258N_LAN_PHYMASK;
-
-       ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
        ar71xx_eth1_data.phy_mask = ALL0258N_SEC_PHYMASK;
-       ar71xx_eth1_data.has_ar7240_switch = 1;
 
-       ar71xx_add_device_mdio(0x0);
+       ar71xx_add_device_mdio(0, 0x0);
 
        ar71xx_add_device_eth(0);
        ar71xx_add_device_eth(1);