[PATCH 1/1] board: Fixed compilation of board.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Made the compilation of board.c depend on the CONFIG_OF flag. The
source file board.c is referencing of_find_all_nodes(...) which is
included only if the CONFIG_OF flag is set.

Signed-off-by: Artur Lorincz <larturus@xxxxxxxxx>
---
 drivers/staging/board/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/board/Makefile b/drivers/staging/board/Makefile
index 6842745..146aab0 100644
--- a/drivers/staging/board/Makefile
+++ b/drivers/staging/board/Makefile
@@ -1,3 +1,3 @@
-obj-y	:= board.o
+obj-$(CONFIG_OF)		+= board.o
 obj-$(CONFIG_ARCH_EMEV2)	+= kzm9d.o
 obj-$(CONFIG_ARCH_R8A7740)	+= armadillo800eva.o
--
1.9.1

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux