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 + depends on SPI_MASTER
22 + tristate "Regmap SPI"
26 --- a/drivers/base/regmap/Makefile
27 +++ b/drivers/base/regmap/Makefile
29 -obj-$(CONFIG_REGMAP) += regmap.o regcache.o
30 -obj-$(CONFIG_REGMAP) += regcache-rbtree.o regcache-lzo.o
31 -obj-$(CONFIG_DEBUG_FS) += regmap-debugfs.o
32 +regmap-core-objs = regmap.o regcache.o regcache-rbtree.o regcache-lzo.o
33 +ifdef CONFIG_DEBUG_FS
34 +regmap-core-objs += regmap-debugfs.o
36 +obj-$(CONFIG_REGMAP) += regmap-core.o
37 obj-$(CONFIG_REGMAP_I2C) += regmap-i2c.o
38 obj-$(CONFIG_REGMAP_SPI) += regmap-spi.o
39 obj-$(CONFIG_REGMAP_IRQ) += regmap-irq.o
40 --- a/drivers/base/regmap/regmap.c
41 +++ b/drivers/base/regmap/regmap.c
43 #include <linux/slab.h>
44 #include <linux/module.h>
45 #include <linux/mutex.h>
46 +#include <linux/module.h>
47 #include <linux/err.h>
49 #define CREATE_TRACE_POINTS
50 @@ -679,3 +680,5 @@ static int __init regmap_initcall(void)
53 postcore_initcall(regmap_initcall);
55 +MODULE_LICENSE("GPL");