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

login
register
mail settings
Submitter Fabio Estevam
Date March 7, 2013, 5:28 p.m.
Message ID <1362677307-5927-1-git-send-email-fabio.estevam@freescale.com>
Download mbox | patch
Permalink /patch/225887/
State Accepted
Delegated to: Stefano Babic
Headers show

Comments

Fabio Estevam - March 7, 2013, 5:28 p.m.
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@denx.de>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 board/olimex/mx23_olinuxino/mx23_olinuxino.c |    1 +
 1 file changed, 1 insertion(+)
Otavio Salvador - March 7, 2013, 5:30 p.m.
On Thu, Mar 7, 2013 at 2:28 PM, Fabio Estevam
<fabio.estevam@freescale.com> wrote:
> 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@denx.de>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>

heh; we both did the same.
Stefano Babic - March 7, 2013, 5:33 p.m.
On 07/03/2013 18:28, Fabio Estevam wrote:
> 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@denx.de>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---

Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic

Patch

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