linux/drivers/net/dsa/qca/Kconfig
Arnd Bergmann 33c1af8e2c 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: 1e264f9d2918 ("net: dsa: qca8k: add LEDs basic support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20230420213639.2243388-1-arnd@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-04-21 20:26:41 -07:00

26 lines
773 B
Plaintext

# SPDX-License-Identifier: GPL-2.0-only
config NET_DSA_AR9331
tristate "Qualcomm Atheros AR9331 Ethernet switch support"
depends on NET_DSA
select NET_DSA_TAG_AR9331
select REGMAP
help
This enables support for the Qualcomm Atheros AR9331 built-in Ethernet
switch.
config NET_DSA_QCA8K
tristate "Qualcomm Atheros QCA8K Ethernet switch family support"
select NET_DSA_TAG_QCA
select REGMAP
help
This enables support for the Qualcomm Atheros QCA8K Ethernet
switch chips.
config NET_DSA_QCA8K_LEDS_SUPPORT
bool "Qualcomm Atheros QCA8K Ethernet switch family LEDs support"
depends on NET_DSA_QCA8K
depends on LEDS_CLASS=y || LEDS_CLASS=NET_DSA_QCA8K
help
This enabled support for LEDs present on the Qualcomm Atheros
QCA8K Ethernet switch chips.