Build this driver on another platforms if COMPILE_TEST=y. Another
drivers may depend on this, for example leds-asic3.

Signed-off-by: Marek Behún <[email protected]>
Cc: Lee Jones <[email protected]>
Cc: Pavel Machek <[email protected]>
Cc: Phil Blundell <[email protected]>
Cc: Samuel Ortiz <[email protected]>
---
 drivers/mfd/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index 33df0837ab415..599a01aee7abe 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -290,7 +290,8 @@ config MFD_CS47L92
 
 config MFD_ASIC3
        bool "Compaq ASIC3"
-       depends on GPIOLIB && ARM
+       depends on GPIOLIB
+       depends on ARM || COMPILE_TEST
        select MFD_CORE
        help
          This driver supports the ASIC3 multifunction chip found on many
-- 
2.26.2

Reply via email to