mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] regmap: remove redundant $(CONFIG_REGMAP) in Makefile
@ 2015-07-31 19:42 Masahiro Yamada
  2015-08-01 10:59 ` Mark Brown
  0 siblings, 1 reply; 3+ messages in thread
From: Masahiro Yamada @ 2015-07-31 19:42 UTC (permalink / raw)
  To: linux-kernel; +Cc: Masahiro Yamada, Greg Kroah-Hartman, Mark Brown

Kbuild descends into drivers/base/regmap/ only when CONFIG_REGMAP
is enabled. (see drivers/base/Makefile)

$(CONFIG_REGMAP) in drivers/base/regmap/Makefile always evaluates
to 'y'.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 drivers/base/regmap/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/base/regmap/Makefile b/drivers/base/regmap/Makefile
index 609e4c8..b1b4041 100644
--- a/drivers/base/regmap/Makefile
+++ b/drivers/base/regmap/Makefile
@@ -1,8 +1,8 @@
 # For include/trace/define_trace.h to include trace.h
 CFLAGS_regmap.o := -I$(src)
 
-obj-$(CONFIG_REGMAP) += regmap.o regcache.o
-obj-$(CONFIG_REGMAP) += regcache-rbtree.o regcache-lzo.o regcache-flat.o
+obj-y += regmap.o regcache.o
+obj-y += regcache-rbtree.o regcache-lzo.o regcache-flat.o
 obj-$(CONFIG_DEBUG_FS) += regmap-debugfs.o
 obj-$(CONFIG_REGMAP_AC97) += regmap-ac97.o
 obj-$(CONFIG_REGMAP_I2C) += regmap-i2c.o
-- 
1.9.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-08-01 12:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-31 19:42 [PATCH] regmap: remove redundant $(CONFIG_REGMAP) in Makefile Masahiro Yamada
2015-08-01 10:59 ` Mark Brown
2015-08-01 12:30   ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®