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)
10 select IRQ_DOMAIN if REGMAP_IRQ
27 --- a/include/linux/regmap.h
28 +++ b/include/linux/regmap.h
29 @@ -43,7 +43,7 @@ struct reg_default {
34 +#if IS_ENABLED(CONFIG_REGMAP)
37 /* Unspecified -> 0 -> Backwards compatible default */
38 --- a/drivers/base/regmap/Makefile
39 +++ b/drivers/base/regmap/Makefile
41 -obj-$(CONFIG_REGMAP) += regmap.o regcache.o
42 -obj-$(CONFIG_REGMAP) += regcache-rbtree.o regcache-lzo.o
43 -obj-$(CONFIG_DEBUG_FS) += regmap-debugfs.o
44 +regmap-core-objs = regmap.o regcache.o regcache-rbtree.o regcache-lzo.o
45 +ifdef CONFIG_DEBUG_FS
46 +regmap-core-objs += regmap-debugfs.o
48 +obj-$(CONFIG_REGMAP) += regmap-core.o
49 obj-$(CONFIG_REGMAP_I2C) += regmap-i2c.o
50 obj-$(CONFIG_REGMAP_SPI) += regmap-spi.o
51 obj-$(CONFIG_REGMAP_MMIO) += regmap-mmio.o