1 --- a/drivers/base/regmap/Kconfig
2 +++ b/drivers/base/regmap/Kconfig
4 # subsystems should select the appropriate symbols.
7 - default y if (REGMAP_I2C || REGMAP_SPI)
16 + tristate "Regmap I2C"
21 + tristate "Regmap SPI"
25 --- a/drivers/base/regmap/Makefile
26 +++ b/drivers/base/regmap/Makefile
28 -obj-$(CONFIG_REGMAP) += regmap.o regcache.o
29 -obj-$(CONFIG_REGMAP) += regcache-rbtree.o regcache-lzo.o
30 -obj-$(CONFIG_DEBUG_FS) += regmap-debugfs.o
31 +regmap-core-objs = regmap.o regcache.o regcache-rbtree.o regcache-lzo.o
32 +ifdef CONFIG_DEBUG_FS
33 +regmap-core-objs += regmap-debugfs.o
35 +obj-$(CONFIG_REGMAP) += regmap-core.o
36 obj-$(CONFIG_REGMAP_I2C) += regmap-i2c.o
37 obj-$(CONFIG_REGMAP_SPI) += regmap-spi.o
38 obj-$(CONFIG_REGMAP_IRQ) += regmap-irq.o