linux-uconsole/drivers/net/wireless
Arnd Bergmann e2807327b5 mt76: fix building without CONFIG_LEDS_CLASS
[ Upstream commit b374e8686f ]

When CONFIG_LEDS_CLASS is disabled, or it is a loadable module while
mt76 is built-in, we run into a link error:

drivers/net/wireless/mediatek/mt76/mac80211.o: In function `mt76_register_device':
mac80211.c:(.text+0xb78): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `devm_of_led_classdev_register'

We don't really need a hard dependency here as the driver can presumably
work just fine without LEDs, so this follows the iwlwifi example and
adds a separate Kconfig option for the LED support, this will be available
whenever it will link, and otherwise the respective code gets left out from
the driver object.

Fixes: 17f1de56df ("mt76: add common code shared between multiple chipsets")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-12-13 09:16:09 +01:00
..
admtek net/wireless: fix spaces and grammar copy/paste in vendor Kconfig help text 2018-03-13 18:52:25 +02:00
ath ath10k: schedule hardware restart if WMI command times out 2018-11-13 11:08:30 -08:00
atmel atmel: Replace mdelay() with msleep() in probe_atmel_card() 2018-07-31 10:25:33 +03:00
broadcom brcmutil: really fix decoding channel info for 160 MHz bandwidth 2018-12-13 09:16:09 +01:00
cisco airo: remove unused variables len and dev and clean up formatting 2018-07-31 10:17:19 +03:00
intel iwlwifi: mvm: don't use SAR Geo if basic SAR is not used 2018-12-01 09:37:26 +01:00
intersil hostap: hide unused procfs helpers 2018-07-31 10:21:33 +03:00
marvell libertas: don't set URB_ZERO_PACKET on IN USB transfer 2018-11-13 11:08:41 -08:00
mediatek mt76: fix building without CONFIG_LEDS_CLASS 2018-12-13 09:16:09 +01:00
quantenna qtnfmac: implement basic WoWLAN support 2018-08-02 21:55:49 +03:00
ralink pci-v4.19-changes 2018-08-16 09:21:54 -07:00
realtek rtlwifi: btcoex: Fix if == else warnings in halbtc8723b2ant.c 2018-08-09 18:15:01 +03:00
rsi rsi: fix memory alignment issue in ARM32 platforms 2018-11-13 11:08:29 -08:00
st treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
ti wlcore: Fix BUG with clear completion on timeout 2018-11-13 11:08:23 -08:00
zydas zd1211rw: use irqsave() in USB's complete callback 2018-06-27 19:12:43 +03:00
Kconfig
mac80211_hwsim.c mac80211_hwsim: do not omit multicast announce of first added radio 2018-09-26 11:20:58 +02:00
mac80211_hwsim.h
Makefile
ray_cs.c ray_cs: remove redundant pointer 'p' 2018-07-31 10:19:50 +03:00
ray_cs.h
rayctl.h
rndis_wlan.c wireless-drivers: use BIT_ULL for NL80211_STA_INFO_ attribute types 2018-06-27 19:07:39 +03:00
wl3501.h
wl3501_cs.c