b43: only hardcode LED behavior if SPROM doesn't encode any
authorLucas Stach <dev@lynxeye.de>
Fri, 3 Jun 2016 21:04:03 +0000 (23:04 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 16 Jun 2016 15:14:46 +0000 (18:14 +0300)
commit508f1222ba4e14e0737a3a1b39aed9e3e8a21fc7
tree01fa572c372332813269de0e2e457a6a19e5694a
parent035ddbc59f542453491356dbcb4b8c2d548acf43
b43: only hardcode LED behavior if SPROM doesn't encode any

Only hardcode the LED behavior if the SROM doesn't provide any for all
LEDs of the card. This avoids instantiating LED triggers for unconnected
LEDs, while (hopefully) keeping things working for old cards with a
blank SROM.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/b43/leds.c