[PATCH 12/15] of gpio: Build gpio helper only when gpiolib is selected

Sascha Hauer s.hauer at pengutronix.de
Fri Oct 26 02:59:05 EDT 2012


Otherwise the functions needed by the helper won't be available.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/of/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/of/Makefile b/drivers/of/Makefile
index c14aaec..5a5960d 100644
--- a/drivers/of/Makefile
+++ b/drivers/of/Makefile
@@ -1,3 +1,3 @@
 obj-y += base.o
-obj-y += gpio.o
+obj-$(CONFIG_GPIOLIB) += gpio.o
 obj-y += partition.o
-- 
1.7.10.4




More information about the barebox mailing list