From: Marek BehĂșn Date: Thu, 17 Sep 2020 22:32:50 +0000 (+0200) Subject: leds: ip30: compile if COMPILE_TEST=y X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2aebb78040e741949ac71f1203f003351061b93b;p=linux.git leds: ip30: compile if COMPILE_TEST=y This driver can be compiled on other platforms with small change if COMPILE_TEST=y. Signed-off-by: Marek BehĂșn Cc: Pavel Machek Cc: Dan Murphy Cc: Thomas Bogendoerfer Signed-off-by: Pavel Machek --- diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig index 96d54e36e3b55..a008170e73cd8 100644 --- a/drivers/leds/Kconfig +++ b/drivers/leds/Kconfig @@ -905,7 +905,7 @@ config LEDS_TPS6105X config LEDS_IP30 tristate "LED support for SGI Octane machines" depends on LEDS_CLASS - depends on SGI_MFD_IOC3 + depends on SGI_MFD_IOC3 || COMPILE_TEST help This option enables support for the Red and White LEDs of SGI Octane machines. diff --git a/drivers/leds/leds-ip30.c b/drivers/leds/leds-ip30.c index d4ec7361c616f..1f952bad0fe86 100644 --- a/drivers/leds/leds-ip30.c +++ b/drivers/leds/leds-ip30.c @@ -3,6 +3,7 @@ * LED Driver for SGI Octane machines */ +#include #include #include #include