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 43e13bc137083110b1a53914746618b9fc778174..d6c32b4dcf76d3c5c70d4631d87d644974054ab2 100644 --- a/target/linux/generic/patches-3.3/270-regmap_dynamic.patch +++ b/target/linux/generic/patches-3.3/270-regmap_dynamic.patch @@ -29,7 +29,7 @@ -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