[brcm63xx] leds: do not register device if no leds defined
[openwrt.git] / target / linux / brcm63xx / patches-3.3 / 551-96348gw_a_leds.patch
index 7e99c4beb90cfe5ce57956ea116136873f2c4494..816e8164c71fa7ba070ee3e923597513d5772c6b 100644 (file)
@@ -1,22 +1,22 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -1332,6 +1332,19 @@ static struct board_info __initdata boar
+@@ -1069,6 +1069,19 @@ static struct board_info __initdata boar
        },
  
        .has_ohci0 = 1,
 +
 +      .leds = {
 +              {
-+                      .name           = "adsl",
++                      .name           = "96348GW-A::adsl",
 +                      .gpio           = 3,
 +                      .active_low     = 1,
 +              },
 +              {
-+                      .name           = "usb",
++                      .name           = "96348GW-A::usb",
 +                      .gpio           = 0,
 +                      .active_low     = 1,
 +              }
 +      },
  };
- #endif
  
+ static struct board_info __initdata board_96348_D4PW = {