From: Fabio Estevam <[email protected]>

Building multi_v7_defconfig for mx6 causes the following build error:

  CC      drivers/mfd/syscon.o
drivers/mfd/syscon.c:94: error: variable 'syscon_regmap_config' has initializer 
but incomplete type
drivers/mfd/syscon.c:95: error: unknown field 'reg_bits' specified in 
initializer
drivers/mfd/syscon.c:95: warning: excess elements in struct initializer
drivers/mfd/syscon.c:95: warning: (near initialization for 
'syscon_regmap_config')
drivers/mfd/syscon.c:96: error: unknown field 'val_bits' specified in 
initializer
drivers/mfd/syscon.c:96: warning: excess elements in struct initializer
drivers/mfd/syscon.c:96: warning: (near initialization for 
'syscon_regmap_config')
drivers/mfd/syscon.c:97: error: unknown field 'reg_stride' specified in 
initializer
drivers/mfd/syscon.c:97: warning: excess elements in struct initializer
drivers/mfd/syscon.c:97: warning: (near initialization for 
'syscon_regmap_config')
drivers/mfd/syscon.c: In function 'syscon_probe':
drivers/mfd/syscon.c:124: error: invalid use of undefined type 'struct 
regmap_config'
drivers/mfd/syscon.c:125: error: implicit declaration of function 
'devm_regmap_init_mmio'
drivers/mfd/syscon.c:126: warning: assignment makes pointer from integer 
without a cast

Fix it by selecting REGMAP option.

Signed-off-by: Fabio Estevam <[email protected]>
---
Changes since v1:
- No changes. Newly introduced in this series

 drivers/mfd/Kconfig |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index acab3ef..ef56515 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -1030,6 +1030,7 @@ config MFD_SYSCON
        bool "System Controller Register R/W Based on Regmap"
        depends on OF
        select REGMAP_MMIO
+       select REGMAP
        help
          Select this option to enable accessing system control registers
          via regmap.
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to