1 Index: linux-2.6.32.13/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 ===================================================================
3 --- linux-2.6.32.13.orig/arch/mips/bcm63xx/boards/board_bcm963xx.c 2010-05-27 21:36:02.000000000 -0400
4 +++ linux-2.6.32.13/arch/mips/bcm63xx/boards/board_bcm963xx.c 2010-05-27 21:40:56.000000000 -0400
35 - .default_trigger = "default-on",
46 int __init board_register_devices(void)
55 platform_device_register_simple("GPIODEV", 0, &gpiodev_resource, 1);
57 - bcm63xx_led_data.num_leds = ARRAY_SIZE(board.leds);
58 + /* count number of LEDs defined by this device */
59 + while (led_count < ARRAY_SIZE(board.leds) && board.leds[led_count].name)
62 + bcm63xx_led_data.num_leds = led_count;
63 bcm63xx_led_data.leds = board.leds;
65 platform_device_register(&bcm63xx_gpio_leds);