a583cb4c40b3176aaf56c068721f829a91f60115
[openwrt.git] / target / linux / generic / patches-3.3 / 270-regmap_dynamic.patch
1 Index: linux-3.3.8/drivers/base/regmap/Kconfig
2 ===================================================================
3 --- linux-3.3.8.orig/drivers/base/regmap/Kconfig        2013-01-04 23:40:36.288481779 +0100
4 +++ linux-3.3.8/drivers/base/regmap/Kconfig     2013-01-04 23:40:39.760481927 +0100
5 @@ -3,16 +3,17 @@
6  # subsystems should select the appropriate symbols.
7  
8  config REGMAP
9 -       default y if (REGMAP_I2C || REGMAP_SPI)
10         select LZO_COMPRESS
11         select LZO_DECOMPRESS
12 -       bool
13 +       tristate "Regmap"
14  
15  config REGMAP_I2C
16 -       tristate
17 +       select REGMAP
18 +       tristate "Regmap I2C"
19  
20  config REGMAP_SPI
21 -       tristate
22 +       select REGMAP
23 +       tristate "Regmap SPI"
24  
25  config REGMAP_IRQ
26         bool
27 Index: linux-3.3.8/drivers/base/regmap/Makefile
28 ===================================================================
29 --- linux-3.3.8.orig/drivers/base/regmap/Makefile       2012-06-01 09:16:13.000000000 +0200
30 +++ linux-3.3.8/drivers/base/regmap/Makefile    2013-01-05 00:20:31.236584162 +0100
31 @@ -1,6 +1,8 @@
32 -obj-$(CONFIG_REGMAP) += regmap.o regcache.o
33 -obj-$(CONFIG_REGMAP) += regcache-rbtree.o regcache-lzo.o
34 -obj-$(CONFIG_DEBUG_FS) += regmap-debugfs.o
35 +regmap-core-objs = regmap.o regcache.o regcache-rbtree.o regcache-lzo.o
36 +ifdef CONFIG_DEBUGFS
37 +regmap-core-objs += regmap-debugfs.o
38 +endif
39 +obj-$(CONFIG_REGMAP) += regmap-core.o
40  obj-$(CONFIG_REGMAP_I2C) += regmap-i2c.o
41  obj-$(CONFIG_REGMAP_SPI) += regmap-spi.o
42  obj-$(CONFIG_REGMAP_IRQ) += regmap-irq.o