Skip to content

Commit

Permalink
hsi: Build hsi_boardinfo.c into hsi core if enabled
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Andrew F. Davis <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
  • Loading branch information
glneo authored and sre committed Jun 15, 2016
1 parent 3c13ab1 commit e01957a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Documentation/DocBook/device-drivers.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
3 changes: 2 additions & 1 deletion drivers/hsi/Makefile
Original file line number Diff line number Diff line change
@@ -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/
File renamed without changes.

0 comments on commit e01957a

Please sign in to comment.