ar71xx: fix MAC address setup for TL-WDR4300 board
[openwrt/openwrt.git] / target / linux / ar71xx / files / arch / mips / ath79 / mach-tl-wdr4300.c
index 3afc7146203fc1509790e36dfdf7084a9b719e45..b9fea95bc20ccb4e8d0b82cafb3ce16af7f8d206 100644 (file)
@@ -107,7 +107,7 @@ static struct gpio_keys_button wdr4300_gpio_keys[] __initdata = {
        },
 };
 
-static const struct ar8327_led_info wdr4300_leds_ar8327[] __initconst = {
+static const struct ar8327_led_info wdr4300_leds_ar8327[] = {
        AR8327_LED_INFO(PHY0_0, HW, "tp-link:blue:wan"),
        AR8327_LED_INFO(PHY1_0, HW, "tp-link:blue:lan1"),
        AR8327_LED_INFO(PHY2_0, HW, "tp-link:blue:lan2"),
@@ -148,7 +148,7 @@ static struct ar8327_platform_data wdr4300_ar8327_data = {
 static struct mdio_board_info wdr4300_mdio0_info[] = {
        {
                .bus_id = "ag71xx-mdio.0",
-               .phy_addr = 0,
+               .mdio_addr = 0,
                .platform_data = &wdr4300_ar8327_data,
        },
 };
@@ -183,7 +183,7 @@ static void __init wdr4300_setup(void)
 
        ath79_register_mdio(0, 0x0);
 
-       ath79_init_mac(ath79_eth0_data.mac_addr, mac, -2);
+       ath79_init_mac(ath79_eth0_data.mac_addr, mac, 0);
 
        /* GMAC0 is connected to an AR8327N switch */
        ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII;