1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -864,6 +864,7 @@ static struct platform_device bcm63xx_gp
4 int __init board_register_devices(void)
10 bcm63xx_uart_register(0);
11 @@ -902,7 +903,11 @@ int __init board_register_devices(void)
13 bcm63xx_flash_register();
15 - bcm63xx_led_data.num_leds = ARRAY_SIZE(board.leds);
16 + /* count number of LEDs defined by this device */
17 + while (led_count < ARRAY_SIZE(board.leds) && board.leds[led_count].name)
20 + bcm63xx_led_data.num_leds = led_count;
21 bcm63xx_led_data.leds = board.leds;
23 platform_device_register(&bcm63xx_gpio_leds);
24 --- a/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h
25 +++ b/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h
26 @@ -57,7 +57,7 @@ struct board_info {
27 struct bcm63xx_dsp_platform_data dsp;
30 - struct gpio_led leds[5];
31 + struct gpio_led leds[14];
34 struct gpio_keys_button buttons[4];