hsi: Build hsi_boardinfo.c into hsi core if enabled
authorAndrew F. Davis <afd@ti.com>
Tue, 14 Jun 2016 16:13:04 +0000 (11:13 -0500)
committerSebastian Reichel <sre@kernel.org>
Wed, 15 Jun 2016 14:02:50 +0000 (16:02 +0200)
If the HSI core is built as a module hsi_boardinfo may still
be built-in as its Kconfig type is bool, which can cause build
issues. Fix this by building this code into the HSI core when
enabled.

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Documentation/DocBook/device-drivers.tmpl
drivers/hsi/Makefile
drivers/hsi/hsi_core.c [moved from drivers/hsi/hsi.c with 100% similarity]

index de79efd..c245e4e 100644 (file)
@@ -511,7 +511,7 @@ X!Ilib/fonts/fonts.c
      </para>
 
 !Iinclude/linux/hsi/hsi.h
-!Edrivers/hsi/hsi.c
+!Edrivers/hsi/hsi_core.c
   </chapter>
 
   <chapter id="pwm">
index 360371e..9694478 100644 (file)
@@ -1,7 +1,8 @@
 #
 # Makefile for HSI
 #
-obj-$(CONFIG_HSI_BOARDINFO)    += hsi_boardinfo.o
 obj-$(CONFIG_HSI)              += hsi.o
+hsi-objs                       := hsi_core.o
+hsi-$(CONFIG_HSI_BOARDINFO)    += hsi_boardinfo.o
 obj-y                          += controllers/
 obj-y                          += clients/
similarity index 100%
rename from drivers/hsi/hsi.c
rename to drivers/hsi/hsi_core.c