Subject: mfd: sec-core requires regulators

From: Arnd Bergmann <[email-masked]>
Date: Tue, 24 Jun 2014 20:09:07 +0200

The newly added sec-core mfd module calls the regulator_suspend_prepare()
function, which is only available if the regulator API is provided. This
matches the usage of the driver, so we can just add a Kconfig dependency.

Reported-by: Jim Davis <[email-masked]>
Signed-off-by: Arnd Bergmann <[email-masked]>

diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index 207c433..1caa3c5 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -582,7 +582,7 @@ config MFD_RC5T583
 
 config MFD_SEC_CORE
        bool "SAMSUNG Electronics PMIC Series Support"
-       depends on I2C=y
+       depends on I2C=y && REGULATOR
        select MFD_CORE
        select REGMAP_I2C
        select REGMAP_IRQ