[brcm63xx] leds: do not register device if no leds defined
[openwrt.git] / target / linux / brcm63xx / patches-3.3 / 507-board-MAGIC.patch
index 63d9e14d7ef34347c2df2b07796f68a7bcf4b8ab..7b96f32110956bc77212d14083a7ac3a1036afba 100644 (file)
 +
 +      .leds = {
 +              {
-+                      .name           = "voip",
++                      .name           = "MAGIC:green:voip",
 +                      .gpio           = 22,
 +                      .active_low     = 1,
 +              },
 +              {
-+                      .name           = "adsl",
++                      .name           = "MAGIC:green:adsl",
 +                      .gpio           = 5,
 +                      .active_low     = 1,
 +              },
 +              {
-+                      .name           = "wifi",
++                      .name           = "MAGIC:green:wifi",
 +                      .gpio           = 28,
 +              },
 +              {
-+                      .name           = "usb",
++                      .name           = "MAGIC:green:usb",
 +                      .gpio           = 35,
 +                      .active_low     = 1,
 +              },
 +              {
-+                      .name           = "hpna",
++                      .name           = "MAGIC:green:hpna",
 +                      .gpio           = 4,
 +                      .active_low     = 1,
 +              },
 +              {
-+                      .name           = "power",
++                      .name           = "MAGIC:green:power",
 +                      .gpio           = 0,
 +                      .active_low     = 1,
 +                      .default_trigger = "default-on",
 +              },
 +              {
-+                      .name           = "stop",
++                      .name           = "MAGIC:green:stop",
 +                      .gpio           = 1,
 +                      .active_low     = 1,
 +              },
@@ -77,7 +77,7 @@
  #endif
  
  /*
-@@ -1535,6 +1605,7 @@ static const struct board_info __initdat
+@@ -1623,6 +1693,7 @@ static const struct board_info __initdat
        &board_rta1025w_16,
        &board_96348_D4PW,
        &board_spw500v,