diff options
author | Simon Glass <sjg@chromium.org> | 2011-12-06 19:31:32 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-12-07 08:41:22 +0100 |
commit | 80729a5493874e696bc6f69a6fc8b54c3c0c5042 (patch) | |
tree | f3a82e1fd0063f411306cb2efefd110bac331233 /common | |
parent | 42c4a23a55fbcccaabe9e3e76b00138185209a74 (diff) |
Fix SPI build errors in exports.c
The spi.h include is no longer included in exports.h, so must be included
here.
This fixes these errors:
In file included from exports.c:41:0:
/home/sjg/trunk/src/third_party/u-boot/files/include/_exports.h: In function 'jumptable_init':
/home/sjg/trunk/src/third_party/u-boot/files/include/_exports.h:27:1: error: 'spi_init' undeclared (first use in this function)
/home/sjg/trunk/src/third_party/u-boot/files/include/_exports.h:27:1: note: each undeclared identifier is reported only once for each function it appears in
/home/sjg/trunk/src/third_party/u-boot/files/include/_exports.h:28:1: error: 'spi_setup_slave' undeclared (first use in this function)
/home/sjg/trunk/src/third_party/u-boot/files/include/_exports.h:29:1: error: 'spi_free_slave' undeclared (first use in this function)
/home/sjg/trunk/src/third_party/u-boot/files/include/_exports.h:30:1: error: 'spi_claim_bus' undeclared (first use in this function)
/home/sjg/trunk/src/third_party/u-boot/files/include/_exports.h:31:1: error: 'spi_release_bus' undeclared (first use in this function)
/home/sjg/trunk/src/third_party/u-boot/files/include/_exports.h:32:1: error: 'spi_xfer' undeclared (first use in this function)
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/exports.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/exports.c b/common/exports.c index 717e4afe6d8..b97ca48307d 100644 --- a/common/exports.c +++ b/common/exports.c @@ -1,5 +1,6 @@ #include <common.h> #include <exports.h> +#include <spi.h> DECLARE_GLOBAL_DATA_PTR; |