max14577 family of drivers are used only on Exynos-based ARMv7 boards
which all were converted to DeviceTree long time ago.  Driver still
supports board-file initialization but it is going to be removed thus
dependency on OF has to be marked explicitly.

Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>
---
 drivers/mfd/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index 55ecdfb74d31..ca196bd48ff2 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -572,6 +572,7 @@ config MFD_88PM860X
 config MFD_MAX14577
        tristate "Maxim Semiconductor MAX14577/77836 MUIC + Charger Support"
        depends on I2C
+       depends on OF || COMPILE_TEST
        select MFD_CORE
        select REGMAP_I2C
        select REGMAP_IRQ
-- 
2.9.3

Reply via email to