]> code.ossystems Code Review - bsp/u-boot.git/commitdiff
mx6sabresd: Include <asm/mach-imx/spi.h> header file
authorDiego Dorta <diego.dorta@nxp.com>
Wed, 27 Sep 2017 16:12:38 +0000 (13:12 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Mon, 2 Oct 2017 17:31:32 +0000 (14:31 -0300)
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@nxp.com>
(cherry picked from commit 3523215a455b719c59ef745c007577ad177846bf)

board/freescale/mx6sabresd/mx6sabresd.c

index 6cc228ab46065d7b833b09e6cfbbdb2a5df0b360..15268f80620ab0476962b031397c7ee60ebbc875 100644 (file)
@@ -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>