X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fgeneric%2Fpatches-3.3%2F270-regmap_dynamic.patch;h=b1cfc8a6281db22cd37723649ab49c5faf97544a;hb=d3c6606980982d35b844b07a393729b1eeef9474;hp=43e13bc137083110b1a53914746618b9fc778174;hpb=828bda360e91eb783ba5125ae3772a0455ad16e1;p=openwrt.git diff --git a/target/linux/generic/patches-3.3/270-regmap_dynamic.patch b/target/linux/generic/patches-3.3/270-regmap_dynamic.patch index 43e13bc137..b1cfc8a628 100644 --- a/target/linux/generic/patches-3.3/270-regmap_dynamic.patch +++ b/target/linux/generic/patches-3.3/270-regmap_dynamic.patch @@ -1,6 +1,6 @@ --- a/drivers/base/regmap/Kconfig +++ b/drivers/base/regmap/Kconfig -@@ -3,16 +3,17 @@ +@@ -3,16 +3,18 @@ # subsystems should select the appropriate symbols. config REGMAP @@ -18,6 +18,7 @@ config REGMAP_SPI - tristate + select REGMAP ++ depends on SPI_MASTER + tristate "Regmap SPI" config REGMAP_IRQ @@ -29,10 +30,26 @@ -obj-$(CONFIG_REGMAP) += regcache-rbtree.o regcache-lzo.o -obj-$(CONFIG_DEBUG_FS) += regmap-debugfs.o +regmap-core-objs = regmap.o regcache.o regcache-rbtree.o regcache-lzo.o -+ifdef CONFIG_DEBUGFS ++ifdef CONFIG_DEBUG_FS +regmap-core-objs += regmap-debugfs.o +endif +obj-$(CONFIG_REGMAP) += regmap-core.o obj-$(CONFIG_REGMAP_I2C) += regmap-i2c.o obj-$(CONFIG_REGMAP_SPI) += regmap-spi.o obj-$(CONFIG_REGMAP_IRQ) += regmap-irq.o +--- a/drivers/base/regmap/regmap.c ++++ b/drivers/base/regmap/regmap.c +@@ -13,6 +13,7 @@ + #include + #include + #include ++#include + #include + + #define CREATE_TRACE_POINTS +@@ -679,3 +680,5 @@ static int __init regmap_initcall(void) + return 0; + } + postcore_initcall(regmap_initcall); ++ ++MODULE_LICENSE("GPL");