wireless: Fix compile error with wifi & leds
authorLuca Tettamanti <kronos.it@gmail.com>
Sun, 27 Apr 2008 22:34:55 +0000 (15:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Apr 2008 22:34:55 +0000 (15:34 -0700)
Fix build error caused by commit
e82404ad612ebabc65d15c3d59b971cb35c3ff36 ("iwlwifi: Select
LEDS_CLASS.") from David Miller:

Since MAC80211_LEDS is selected by wireless drivers it must select its
own dependencies otherwise a build error may occur (kbuild will select
the symbol regardless of "depends" constraints).

Signed-off-By: Luca Tettamanti <kronos.it@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mac80211/Kconfig

index 520a5180a4f6f074a4849addb4a96c2fc698efaf..a24b459dd45aecf9ba8e1214fce68fe2b8330c6c 100644 (file)
@@ -73,7 +73,9 @@ config MAC80211_MESH
 
 config MAC80211_LEDS
        bool "Enable LED triggers"
-       depends on MAC80211 && LEDS_TRIGGERS
+       depends on MAC80211
+       select NEW_LEDS
+       select LEDS_TRIGGERS
        ---help---
          This option enables a few LED triggers for different
          packet receive/transmit events.