kernel: move regmap bloat out of the kernel image if it is only being used in modules
[openwrt.git] / target / linux / generic / patches-3.3 / 270-regmap_dynamic.patch
1 --- a/drivers/base/regmap/Kconfig
2 +++ b/drivers/base/regmap/Kconfig
3 @@ -3,15 +3,16 @@
4  # subsystems should select the appropriate symbols.
5  
6  config REGMAP
7 -       default y if (REGMAP_I2C || REGMAP_SPI)
8         select LZO_COMPRESS
9         select LZO_DECOMPRESS
10 -       bool
11 +       tristate
12  
13  config REGMAP_I2C
14 +       select REGMAP
15         tristate
16  
17  config REGMAP_SPI
18 +       select REGMAP
19         tristate
20  
21  config REGMAP_IRQ