Commit b919540a authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Hans de Goede

platform/x86: int3472/discrete: add LEDS_CLASS dependency

int3472 now fails to link when the LED support is disabled:

x86_64-linux-ld: drivers/platform/x86/intel/int3472/led.o: in function `skl_int3472_register_pled':
led.c:(.text+0xf4): undefined reference to `led_classdev_register_ext'
x86_64-linux-ld: led.c:(.text+0x131): undefined reference to `led_add_lookup'
x86_64-linux-ld: drivers/platform/x86/intel/int3472/led.o: in function `skl_int3472_unregister_pled':
led.c:(.text+0x16b): undefined reference to `led_remove_lookup'
x86_64-linux-ld: led.c:(.text+0x177): undefined reference to `led_classdev_unregister'

Add an explicit Kconfig dependency.

Fixes: 5ae20a80 ("platform/x86: int3472/discrete: Create a LED class device for the privacy LED")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Reviewed-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Link: https://lore.kernel.org/r/20230208163658.2129009-1-arnd@kernel.orgReviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent 23d18a20
...@@ -4,6 +4,7 @@ config INTEL_SKL_INT3472 ...@@ -4,6 +4,7 @@ config INTEL_SKL_INT3472
depends on COMMON_CLK depends on COMMON_CLK
depends on I2C depends on I2C
depends on GPIOLIB depends on GPIOLIB
depends on LEDS_CLASS
depends on REGULATOR depends on REGULATOR
select MFD_CORE select MFD_CORE
select REGMAP_I2C select REGMAP_I2C
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment