ar71xx: fix whitespaces nits
[openwrt.git] / target / linux / ar71xx / files / arch / mips / ar71xx / mach-pb44.c
index aa74666..219b832 100644 (file)
@@ -94,14 +94,14 @@ static struct gpio_button pb44_gpio_buttons[] __initdata = {
        {
                .desc           = "soft_reset",
                .type           = EV_KEY,
-               .code           = BTN_0,
+               .code           = KEY_RESTART,
                .threshold      = 3,
                .gpio           = PB44_GPIO_SW_RESET,
                .active_low     = 1,
-       } , {
+       }, {
                .desc           = "jumpstart",
                .type           = EV_KEY,
-               .code           = BTN_1,
+               .code           = KEY_WPS_BUTTON,
                .threshold      = 3,
                .gpio           = PB44_GPIO_SW_JUMP,
                .active_low     = 1,
@@ -173,11 +173,13 @@ static void __init pb44_init(void)
 {
        ar71xx_add_device_mdio(~PB44_MDIO_PHYMASK);
 
+       ar71xx_init_mac(ar71xx_eth0_data.mac_addr, ar71xx_mac_base, 0);
        ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII;
        ar71xx_eth0_data.phy_mask = PB44_WAN_PHYMASK;
 
        ar71xx_add_device_eth(0);
 
+       ar71xx_init_mac(ar71xx_eth1_data.mac_addr, ar71xx_mac_base, 1);
        ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII;
        ar71xx_eth1_data.speed = SPEED_1000;
        ar71xx_eth1_data.duplex = DUPLEX_FULL;
@@ -190,7 +192,7 @@ static void __init pb44_init(void)
        pb42_pci_init();
 
        i2c_register_board_info(0, pb44_i2c_board_info,
-                               ARRAY_SIZE(pb44_i2c_board_info));
+                               ARRAY_SIZE(pb44_i2c_board_info));
 
        platform_device_register(&pb44_i2c_gpio_device);
 
@@ -198,10 +200,10 @@ static void __init pb44_init(void)
        platform_device_register(&pb44_spi_device);
 
        ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(pb44_leds_gpio),
-                                   pb44_leds_gpio);
+                                       pb44_leds_gpio);
 
        ar71xx_add_device_gpio_buttons(-1, 20, ARRAY_SIZE(pb44_gpio_buttons),
-                                      pb44_gpio_buttons);
+                                       pb44_gpio_buttons);
 }
 
 MIPS_MACHINE(AR71XX_MACH_PB44, "PB44", "Atheros PB44", pb44_init);