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 || REGMAP_MMIO || REGMAP_IRQ)
10 select IRQ_DOMAIN if REGMAP_IRQ
17 + tristate "Regmap I2C"
22 + tristate "Regmap SPI"
31 --- a/include/linux/regmap.h
32 +++ b/include/linux/regmap.h
33 @@ -45,7 +45,7 @@ struct reg_default {
38 +#if IS_ENABLED(CONFIG_REGMAP)
41 /* Unspecified -> 0 -> Backwards compatible default */
42 --- a/drivers/base/regmap/regmap.c
43 +++ b/drivers/base/regmap/regmap.c
45 #include <linux/device.h>
46 #include <linux/slab.h>
47 #include <linux/export.h>
48 +#include <linux/module.h>
49 #include <linux/mutex.h>
50 #include <linux/err.h>
51 #include <linux/rbtree.h>
52 @@ -1777,3 +1778,5 @@ static int __init regmap_initcall(void)
55 postcore_initcall(regmap_initcall);
57 +MODULE_LICENSE("GPL");