summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Dorta <diego.dorta@nxp.com>2017-09-27 16:12:38 (GMT)
committerStefano Babic <sbabic@denx.de>2017-10-12 15:31:16 (GMT)
commitadf9bd3b23667e4fc1abd8810222ca9823ef7732 (patch)
treee0cf52f5a1109b663102a487b8caef47749a6d50
parentc49fa34e5bbc6943d385e74d4fb9ea7e5afecf10 (diff)
downloadu-boot-adf9bd3b23667e4fc1abd8810222ca9823ef7732.tar.xz
mx6sabresd: Include <asm/mach-imx/spi.h> header file
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>
-rw-r--r--board/freescale/mx6sabresd/mx6sabresd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c
index 6cc228a..15268f8 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>