diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-05-27 01:51:49 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-05-27 07:06:32 -0400 |
commit | ac1d686846d23b2665e9d4791e32af70e251da90 (patch) | |
tree | 53928b2ffb4436cba0cd6422dab9b669c30659f5 /drivers/regulator/Kconfig | |
parent | 3eb2c7ecb7ea0fad4a53cbedcb87341dcffcea2b (diff) |
regulator: ltc3589: Fix module dependency
Make this driver depend on I2C and select REGMAP_I2C to fix build failure.
Also allows this driver to be built as module.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator/Kconfig')
-rw-r--r-- | drivers/regulator/Kconfig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig index 5599a61bd88c..4c12caba37ee 100644 --- a/drivers/regulator/Kconfig +++ b/drivers/regulator/Kconfig | |||
@@ -266,7 +266,9 @@ config REGULATOR_LP8788 | |||
266 | This driver supports LP8788 voltage regulator chip. | 266 | This driver supports LP8788 voltage regulator chip. |
267 | 267 | ||
268 | config REGULATOR_LTC3589 | 268 | config REGULATOR_LTC3589 |
269 | bool "LTC3589 8-output voltage regulator" | 269 | tristate "LTC3589 8-output voltage regulator" |
270 | depends on I2C | ||
271 | select REGMAP_I2C | ||
270 | help | 272 | help |
271 | This enables support for the LTC3589, LTC3589-1, and LTC3589-2 | 273 | This enables support for the LTC3589, LTC3589-1, and LTC3589-2 |
272 | 8-output regulators controlled via I2C. | 274 | 8-output regulators controlled via I2C. |