[brcm63xx] leds: do not register device if no leds defined
[openwrt.git] / target / linux / brcm63xx / patches-3.3 / 300-reset_buttons.patch
index 28a88e6d1f38fd2d565c8e32f34aaf4453418b68..0e1d6f8d95c6478ed603d4c97bc6af51e6634e04 100644 (file)
@@ -53,7 +53,7 @@
  };
  
  static struct board_info __initdata board_FAST2404 = {
-@@ -823,11 +848,23 @@ static struct platform_device bcm63xx_gp
+@@ -821,11 +846,23 @@ static struct platform_device bcm63xx_gp
        .dev.platform_data      = &bcm63xx_led_data,
  };
  
@@ -77,7 +77,7 @@
        if (board.has_uart0)
                bcm63xx_uart_register(0);
  
-@@ -870,5 +907,16 @@ int __init board_register_devices(void)
+@@ -868,5 +905,16 @@ int __init board_register_devices(void)
  
        platform_device_register(&bcm63xx_gpio_leds);