]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
arcnet/com20020: add LEDS_CLASS dependency
authorArnd Bergmann <arnd@arndb.de>
Tue, 3 Nov 2015 13:51:29 +0000 (14:51 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Nov 2015 16:29:56 +0000 (11:29 -0500)
The newly added led trigger support in the com20020-pci driver causes
build errors when CONFIG_LEDS_CLASS is disabled:

drivers/built-in.o: In function `com20020pci_probe':
(.text+0x185dc4): undefined reference to `devm_led_classdev_register'
(.text+0x185dd8): undefined reference to `devm_led_classdev_register'

This adds a Kconfig dependency to prevent the invalid configurations.
Other drivers appear to be split 50:50 between 'select' and 'depends on'
for this symbol, I picked 'depends on' as I could not find a common
policy and it generally causes fewer problems.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 8890624a4e8c ("arcnet: com20020-pci: add led trigger support")
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/arcnet/Kconfig

index 2a9c3c3abe9be27307b11a87697eb5196feb9ebd..39bd16f3f86decce4d5421413c1bcc4654168a4c 100644 (file)
@@ -103,6 +103,7 @@ config ARCNET_RIM_I
 
 config ARCNET_COM20020
        tristate "ARCnet COM20020 chipset driver"
+       depends on LEDS_CLASS
        help
          This is the driver for the new COM20020 chipset. It supports such
          things as promiscuous mode, so packet sniffing is possible, and