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 <marek.behun@nic.cz>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Dan Murphy <dmurphy@ti.com>
Cc: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
This commit is contained in:
Marek Behún 2020-09-18 00:32:50 +02:00 committed by Pavel Machek
parent f1b0a43bba
commit 2aebb78040
2 changed files with 2 additions and 1 deletions

View File

@ -905,7 +905,7 @@ config LEDS_TPS6105X
config LEDS_IP30 config LEDS_IP30
tristate "LED support for SGI Octane machines" tristate "LED support for SGI Octane machines"
depends on LEDS_CLASS depends on LEDS_CLASS
depends on SGI_MFD_IOC3 depends on SGI_MFD_IOC3 || COMPILE_TEST
help help
This option enables support for the Red and White LEDs of This option enables support for the Red and White LEDs of
SGI Octane machines. SGI Octane machines.

View File

@ -3,6 +3,7 @@
* LED Driver for SGI Octane machines * LED Driver for SGI Octane machines
*/ */
#include <asm/io.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>