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
39 --- a/drivers/base/regmap/regmap.c
40 +++ b/drivers/base/regmap/regmap.c
42 #include <linux/slab.h>
43 #include <linux/module.h>
44 #include <linux/mutex.h>
45 +#include <linux/module.h>
46 #include <linux/err.h>
48 #define CREATE_TRACE_POINTS
49 @@ -679,3 +680,5 @@ static int __init regmap_initcall(void)
52 postcore_initcall(regmap_initcall);
54 +MODULE_LICENSE("GPL");