summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/dvm/Makefile
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2014-04-24 16:31:08 +0200
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2014-05-06 19:40:05 +0200
commitc43e93300a23545ba4a6fc73c42f20edf23a652e (patch)
treec97c017f4589f714c64671c4f8d2b2437e39c4a2 /drivers/net/wireless/iwlwifi/dvm/Makefile
parentiwlwifi: mvm: fix bug in parse_nvm_sections (diff)
downloadlinux-c43e93300a23545ba4a6fc73c42f20edf23a652e.tar.xz
linux-c43e93300a23545ba4a6fc73c42f20edf23a652e.zip
iwlwifi: make LED support optional
If there's no LED on the system, it doesn't make a lot of sense to include close to 4k of LED-related code (mostly in mac80211), so instead of forcing LED support into the kernel, don't build iwlwifi/mac80211 LED support if there's no LED class support. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Reviewed-by: EliadX Peller <eliad@wizery.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/dvm/Makefile')
-rw-r--r--drivers/net/wireless/iwlwifi/dvm/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/dvm/Makefile b/drivers/net/wireless/iwlwifi/dvm/Makefile
index dce7ab2e0c4b..4d19685f31c3 100644
--- a/drivers/net/wireless/iwlwifi/dvm/Makefile
+++ b/drivers/net/wireless/iwlwifi/dvm/Makefile
@@ -4,9 +4,10 @@ iwldvm-objs += main.o rs.o mac80211.o ucode.o tx.o
iwldvm-objs += lib.o calib.o tt.o sta.o rx.o
iwldvm-objs += power.o
-iwldvm-objs += scan.o led.o
+iwldvm-objs += scan.o
iwldvm-objs += rxon.o devices.o
+iwldvm-$(CONFIG_IWLWIFI_LEDS) += led.o
iwldvm-$(CONFIG_IWLWIFI_DEBUGFS) += debugfs.o
ccflags-y += -D__CHECK_ENDIAN__ -I$(src)/../