]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
regulator: mt6311: MT6311_REGULATOR needs to select REGMAP_I2C
authorHenry Chen <henryc.chen@mediatek.com>
Tue, 17 Nov 2015 08:36:49 +0000 (16:36 +0800)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:23:06 +0000 (10:23 +0100)
BugLink: http://bugs.launchpad.net/bugs/1553179
commit aab3c3f34cc2dd8230052770712606d65de6538f upstream.

This patch fix the below build error:
drivers/regulator/mt6311-regulator.c:111: undefined reference to `__devm_regmap_init_i2c'

Signed-off-by: Henry Chen <henryc.chen@mediatek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/regulator/Kconfig

index 8df0b0e62976d460c96a0be4dffbe53363586b4a..00676208080e6b63afcea9b58d2dedb5d6356b55 100644 (file)
@@ -446,6 +446,7 @@ config REGULATOR_MC13892
 config REGULATOR_MT6311
        tristate "MediaTek MT6311 PMIC"
        depends on I2C
+       select REGMAP_I2C
        help
          Say y here to select this option to enable the power regulator of
          MediaTek MT6311 PMIC.