|
@@ -72,6 +72,9 @@ static void b43_led_brightness_set(struct led_classdev *led_dev,
|
|
|
struct b43_wldev *dev = led->dev;
|
|
|
bool radio_enabled;
|
|
|
|
|
|
+ if (unlikely(b43_status(dev) < B43_STAT_INITIALIZED))
|
|
|
+ return;
|
|
|
+
|
|
|
/* Checking the radio-enabled status here is slightly racy,
|
|
|
* but we want to avoid the locking overhead and we don't care
|
|
|
* whether the LED has the wrong state for a second. */
|