[U-Boot] [PATCH] mx23_olinuxino: Add missing gpio header

Fabio Estevam fabio.estevam at freescale.com
Thu Mar 7 18:28:27 CET 2013


Add missing gpio header in order to fix the following build warning:

mx23_olinuxino.c:50:2: warning: implicit declaration of function 'gpio_direction_output' [-Wimplicit-function-declaration]

Reported-by: Stefano Babic <sbabic at denx.de>
Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
---
 board/olimex/mx23_olinuxino/mx23_olinuxino.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/board/olimex/mx23_olinuxino/mx23_olinuxino.c b/board/olimex/mx23_olinuxino/mx23_olinuxino.c
index 9252717..8cc215d 100644
--- a/board/olimex/mx23_olinuxino/mx23_olinuxino.c
+++ b/board/olimex/mx23_olinuxino/mx23_olinuxino.c
@@ -28,6 +28,7 @@
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
+#include <asm/gpio.h>
 #ifdef CONFIG_STATUS_LED
 #include <status_led.h>
 #endif
-- 
1.7.9.5




More information about the U-Boot mailing list