diff options
author | Jagan Teki <jteki@openedev.com> | 2015-06-26 22:21:37 +0300 |
---|---|---|
committer | Jagan Teki <jteki@openedev.com> | 2015-07-01 18:45:03 +0300 |
commit | 5f24d123c868c8f2900c7c3f8aa7efc5e6ccc6be (patch) | |
tree | 5cb83107d688651ad01bb71308bbef11bf31705e /drivers/spi/xilinx_spi.c | |
parent | 9505c36ed05b94a11c836b1347fd1e4c1918dd50 (diff) | |
download | u-boot-5f24d123c868c8f2900c7c3f8aa7efc5e6ccc6be.tar.xz |
spi: xilinx_spi: Add asm/io.h include file
This patch includes asm/io.h for readl and writel calls.
build errors:
drivers/spi/xilinx_spi.c: In function 'xilinx_spi_probe':
drivers/spi/xilinx_spi.c:119:2: warning: implicit declaration of function 'writel' [-Wimplicit-function-declaration]
drivers/spi/xilinx_spi.c: In function 'xilinx_spi_xfer':
drivers/spi/xilinx_spi.c:193:2: warning: implicit declaration of function 'readl' [-Wimplicit-function-declaration]
Signed-off-by: Jagan Teki <jteki@openedev.com>
Cc: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'drivers/spi/xilinx_spi.c')
-rw-r--r-- | drivers/spi/xilinx_spi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c index 4b0b50f704..6c21acda57 100644 --- a/drivers/spi/xilinx_spi.c +++ b/drivers/spi/xilinx_spi.c @@ -19,6 +19,7 @@ #include <errno.h> #include <malloc.h> #include <spi.h> +#include <asm/io.h> /* * [0]: http://www.xilinx.com/support/documentation |