Skip to content

Commit 33c1af8

Browse files
arndbkuba-moo
authored andcommitted
net: dsa: qca8k: fix LEDS_CLASS dependency
With LEDS_CLASS=m, a built-in qca8k driver fails to link: arm-linux-gnueabi-ld: drivers/net/dsa/qca/qca8k-leds.o: in function `qca8k_setup_led_ctrl': qca8k-leds.c:(.text+0x1ea): undefined reference to `devm_led_classdev_register_ext' Change the dependency to avoid the broken configuration. Fixes: 1e264f9 ("net: dsa: qca8k: add LEDs basic support") Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Christian Marangi <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 6aa445e commit 33c1af8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/dsa/qca/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ config NET_DSA_QCA8K
1919
config NET_DSA_QCA8K_LEDS_SUPPORT
2020
bool "Qualcomm Atheros QCA8K Ethernet switch family LEDs support"
2121
depends on NET_DSA_QCA8K
22-
depends on LEDS_CLASS
22+
depends on LEDS_CLASS=y || LEDS_CLASS=NET_DSA_QCA8K
2323
help
2424
This enabled support for LEDs present on the Qualcomm Atheros
2525
QCA8K Ethernet switch chips.

0 commit comments

Comments
 (0)