]> git.sur5r.net Git - u-boot/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)
committerStefano Babic <sbabic@denx.de>
Thu, 12 Oct 2017 15:31:16 +0000 (17:31 +0200)
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>
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>