[U-Boot] [PATCH 2/4] mx6sabresd: Include <asm/mach-imx/spi.h> header file

Stefano Babic sbabic at denx.de
Mon Oct 2 14:14:32 UTC 2017


On 27/09/2017 18:12, Diego Dorta wrote:
> When compiling with W=1 the following warning is observed:
> 
> board/freescale/mx6sabresd/mx6sabresd.c:680:5: warning: no previous prototype for ‘board_spi_cs_gpio’ [-Wmissing-prototypes] int board_spi_cs_gpio(unsigned bus, unsigned cs)
> 
> Remove this warning by including <asm/mach-imx/spi.h>.
> 
> Signed-off-by: Diego Dorta <diego.dorta at nxp.com>
> ---
>  board/freescale/mx6sabresd/mx6sabresd.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c
> index 6c9524d..c494500 100644
> --- a/board/freescale/mx6sabresd/mx6sabresd.c
> +++ b/board/freescale/mx6sabresd/mx6sabresd.c
> @@ -10,6 +10,7 @@
>  #include <asm/arch/imx-regs.h>
>  #include <asm/arch/iomux.h>
>  #include <asm/arch/mx6-pins.h>
> +#include <asm/mach-imx/spi.h>
>  #include <linux/errno.h>
>  #include <asm/gpio.h>
>  #include <asm/mach-imx/mxc_i2c.h>
> 

Applied to u-boot-imx, -master, thanks !

Best regards,
Stefano Babic
-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the U-Boot mailing list