leds: ip30: compile if COMPILE_TEST=y
authorMarek Behún <marek.behun@nic.cz>
Thu, 17 Sep 2020 22:32:50 +0000 (00:32 +0200)
committerPavel Machek <pavel@ucw.cz>
Sat, 26 Sep 2020 19:56:38 +0000 (21:56 +0200)
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>
drivers/leds/Kconfig
drivers/leds/leds-ip30.c

index 96d54e36e3b55bd1abb3d7279e8a3f5e57836ca9..a008170e73cd85e3b627cc650d7d8e03ef77bef5 100644 (file)
@@ -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.
index d4ec7361c616fc25f7aaa64de56d8601387fd3bb..1f952bad0fe865268c9e4d79a12413d6e5977f4e 100644 (file)
@@ -3,6 +3,7 @@
  * LED Driver for SGI Octane machines
  */
 
+#include <asm/io.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/platform_device.h>