]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: check for CONFIG_MAC80211_LEDS in the tpt_led_trigger declaration
authorLuciano Coelho <luciano.coelho@nokia.com>
Tue, 21 Dec 2010 14:02:17 +0000 (16:02 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Dec 2010 19:36:05 +0000 (14:36 -0500)
commit0f65b3ad1b0833c9a445bd9f5eb33d62220d70d2
treeb811e0bdd3b03bf5efcedb0039e1841fd57de981
parentfc4af39c158b305dbee7a04b4db9fbe4b152258b
mac80211: check for CONFIG_MAC80211_LEDS in the tpt_led_trigger declaration

If CONFIG_MAC80211_LEDS is not set, ieee80211_i.h was failing to compile,
because struct led_trigger is only declared when CONFIG_LEDS_TRIGGERS is
set.

This patch adds ifdefs around the tpt_led_trigger declaration in
ieee80211_i.h to avoid the problem.

Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ieee80211_i.h