imx6: refresh patches
[openwrt/openwrt.git] / target / linux / imx6 / patches-3.10 / 0020-regulator-pfuze100-REGULATOR_PFUZE100-needs-to-selec.patch
1 From: Axel Lin <axel.lin@ingics.com>
2 Subject: [PATCH] regulator: pfuze100: REGULATOR_PFUZE100 needs to select
3 REGMAP_I2C
4
5 This fixes below build errors:
6
7 CC [M] drivers/regulator/pfuze100-regulator.o
8 drivers/regulator/pfuze100-regulator.c:342:21: error: variable 'pfuze_regmap_config' has initializer but incomplete type
9 drivers/regulator/pfuze100-regulator.c:343:2: error: unknown field 'reg_bits' specified in initializer
10 drivers/regulator/pfuze100-regulator.c:343:2: warning: excess elements in struct initializer [enabled by default]
11 drivers/regulator/pfuze100-regulator.c:343:2: warning: (near initialization for 'pfuze_regmap_config') [enabled by default]
12 drivers/regulator/pfuze100-regulator.c:344:2: error: unknown field 'val_bits' specified in initializer
13 drivers/regulator/pfuze100-regulator.c:344:2: warning: excess elements in struct initializer [enabled by default]
14 drivers/regulator/pfuze100-regulator.c:344:2: warning: (near initialization for 'pfuze_regmap_config') [enabled by default]
15 drivers/regulator/pfuze100-regulator.c:345:2: error: unknown field 'max_register' specified in initializer
16 drivers/regulator/pfuze100-regulator.c:345:2: warning: excess elements in struct initializer [enabled by default]
17 drivers/regulator/pfuze100-regulator.c:345:2: warning: (near initialization for 'pfuze_regmap_config') [enabled by default]
18 drivers/regulator/pfuze100-regulator.c:346:2: error: unknown field 'cache_type' specified in initializer
19 drivers/regulator/pfuze100-regulator.c:346:2: warning: excess elements in struct initializer [enabled by default]
20 drivers/regulator/pfuze100-regulator.c:346:2: warning: (near initialization for 'pfuze_regmap_config') [enabled by default]
21 drivers/regulator/pfuze100-regulator.c: In function 'pfuze100_regulator_probe':
22 drivers/regulator/pfuze100-regulator.c:370:2: error: implicit declaration of function 'devm_regmap_init_i2c' [-Werror=implicit-function-declaration]
23 drivers/regulator/pfuze100-regulator.c:370:21: warning: assignment makes pointer from integer without a cast [enabled by default]
24 cc1: some warnings being treated as errors
25 make[2]: *** [drivers/regulator/pfuze100-regulator.o] Error 1
26 make[1]: *** [drivers/regulator] Error 2
27 make: *** [drivers] Error 2
28
29 Signed-off-by: Axel Lin <axel.lin@ingics.com>
30 Signed-off-by: Mark Brown <broonie@linaro.org>
31 ---
32 drivers/regulator/Kconfig | 1 +
33 1 file changed, 1 insertion(+)
34
35 --- a/drivers/regulator/Kconfig
36 +++ b/drivers/regulator/Kconfig
37 @@ -303,6 +303,7 @@ config REGULATOR_PCF50633
38 config REGULATOR_PFUZE100
39 tristate "Support regulators on Freescale PFUZE100 PMIC"
40 depends on I2C
41 + select REGMAP_I2C
42 help
43 Say y here to support the regulators found on the Freescale PFUZE100
44 PMIC.