提交 38ae3192 编写于 作者: A Arnd Bergmann 提交者: Kalle Valo

wifi: rtl8xxxu: add LEDS_CLASS dependency

rtl8xxxu now unconditionally uses LEDS_CLASS, so a Kconfig dependency
is required to avoid link errors:

aarch64-linux-ld: drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.o: in function `rtl8xxxu_disconnect':
rtl8xxxu_core.c:(.text+0x730): undefined reference to `led_classdev_unregister'

ERROR: modpost: "led_classdev_unregister" [drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.ko] undefined!
ERROR: modpost: "led_classdev_register_ext" [drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.ko] undefined!

Fixes: 3be01622 ("wifi: rtl8xxxu: Register the LED and make it blink")
Signed-off-by: NArnd Bergmann <arnd@arndb.de>
Signed-off-by: NKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230217095910.2480356-1-arnd@kernel.org
上级 3a156b52
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
config RTL8XXXU config RTL8XXXU
tristate "Realtek 802.11n USB wireless chips support" tristate "Realtek 802.11n USB wireless chips support"
depends on MAC80211 && USB depends on MAC80211 && USB
depends on LEDS_CLASS
help help
This is an alternative driver for various Realtek RTL8XXX This is an alternative driver for various Realtek RTL8XXX
parts written to utilize the Linux mac80211 stack. parts written to utilize the Linux mac80211 stack.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册