Currently the fan53880 regulator driver needs a device tree to get
probed, this patch provides the necessary dependency.

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Christoph Fritz <[email protected]>
---
 drivers/regulator/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig
index d47055db999d..76ef4b2de2e7 100644
--- a/drivers/regulator/Kconfig
+++ b/drivers/regulator/Kconfig
@@ -338,7 +338,7 @@ config REGULATOR_FAN53555
 
 config REGULATOR_FAN53880
        tristate "Fairchild FAN53880 Regulator"
-       depends on I2C
+       depends on I2C && OF
        select REGMAP_I2C
        help
          This driver supports Fairchild (ON Semiconductor) FAN53880
-- 
2.20.1


Reply via email to