Skip to contentSkip to conversation

regmap: select REGMAP if REGMAP_MMIO and REGMAP_IRQ enabled

PATCH Applied Dong Aisheng 2 participants 2 messages Oct 15, 2012 – Oct 17, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 regmap: select REGMAP if REGMAP_MMIO and REGMAP_IRQ enabled

From: Dong Aisheng <[email protected]>

The regmap_mmio and regmap_irq depend on regmap core, if not select,
we may not compile regmap core and meet compiling errors as follows
if REGMAP_MMIO is selected by client drivers:
drivers/mfd/syscon.c:94:15: error: variable 'syscon_regmap_config' has initializer but incomplete type drivers/mfd/syscon.c:95:2: error: unknown field 'reg_bits' specified in initializer
drivers/mfd/syscon.c:95:2: warning: excess elements in struct initializer [enabled by default] drivers/mfd/syscon.c:95:2: warning: (near initialization for 'syscon_regmap_config') [enabled by default] drivers/mfd/syscon.c:96:2: error: unknown field 'val_bits' specified in initializer
drivers/mfd/syscon.c:96:2: warning: excess elements in struct initializer [enabled by default] drivers/mfd/syscon.c:96:2: warning: (near initialization for 'syscon_regmap_config') [enabled by default] drivers/mfd/syscon.c:97:2: error: unknown field 'reg_stride' specified in initializer drivers/mfd/syscon.c:97:2: warning: excess elements in struct initializer [enabled by default] drivers/mfd/syscon.c:97:2: warning: (near initialization for 'syscon_regmap_config') [enabled by default] drivers/mfd/syscon.c: In function 'syscon_probe':
drivers/mfd/syscon.c:124:2: error: invalid use of undefined type 'struct regmap_config' drivers/mfd/syscon.c:125:2: error: implicit declaration of function 'devm_regmap_init_mmio' [-Werror=implicit-function-declaration] drivers/mfd/syscon.c:125:17: warning: assignment makes pointer from integer without a cast [enabled by default]
cc1: some warnings being treated as errors

drivers/mfd/Kconfig:
config MFD_SYSCON
bool "System Controller Register R/W Based on Regmap" depends on OF
select REGMAP_MMIO
help
Select this option to enable accessing system control registers
via regmap.

Cc Mark Brown <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Stephen Warren <[email protected]>
Cc Samuel Ortiz <[email protected]>
Cc Fengguang Wu <[email protected]>
Cc Randy Dunlap <[email protected]>
---
 drivers/base/regmap/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/base/regmap/Kconfig +1 -1
index 6be390b..f0d3054 100644
@@ -3,7 +3,7 @@
 # subsystems should select the appropriate symbols.
 
 config REGMAP
-	default y if (REGMAP_I2C || REGMAP_SPI)
+	default y if (REGMAP_I2C || REGMAP_SPI || REGMAP_MMIO || REGMAP_IRQ)
 	select LZO_COMPRESS
 	select LZO_DECOMPRESS
 	select IRQ_DOMAIN if REGMAP_IRQ
Signature · 1 line
1.7.0.4
Applied
#1 lore raw
Quoted 5 lines · Dong Aisheng

From: Dong Aisheng <[email protected]>

The regmap_mmio and regmap_irq depend on regmap core, if not select, we may not compile regmap core and meet compiling errors as follows if REGMAP_MMIO is selected by client drivers:

Applied, thanks.

Please use less random CC lists.