diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-05-26 12:11:31 +0200 |
---|---|---|
committer | Macpaul Lin <macpaul@gmail.com> | 2013-07-24 11:49:17 +0800 |
commit | f6fd4140a5c7141a58a4e890951c9415be5347c4 (patch) | |
tree | 1224233141224a0f70704ceef2f2c8fe5db19f83 /board/AndesTech | |
parent | 8599515f42cd51009bb3b0bf8f48e1181b058537 (diff) | |
download | u-boot-imx-f6fd4140a5c7141a58a4e890951c9415be5347c4.zip u-boot-imx-f6fd4140a5c7141a58a4e890951c9415be5347c4.tar.gz u-boot-imx-f6fd4140a5c7141a58a4e890951c9415be5347c4.tar.bz2 |
nds32: adp-ag102: use 'faraday/ftpci100.h' for pci_ftpci_init
Due to improper external function declaration,
building U-Boot for the adp-ag102 board shows
this warning:
adp-ag102.c: In function 'pci_init_board':
adp-ag102.c:95: warning: function declaration isn't a prototype
Include the 'faraday/ftpci100.h' header which
provides the proper declaration and remove the
local declaration to get rid of the warning.
Compile tested only.
Cc: Macpaul Lin <macpaul@andestech.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Diffstat (limited to 'board/AndesTech')
-rw-r--r-- | board/AndesTech/adp-ag102/adp-ag102.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/board/AndesTech/adp-ag102/adp-ag102.c b/board/AndesTech/adp-ag102/adp-ag102.c index 5a25632..1b56dac 100644 --- a/board/AndesTech/adp-ag102/adp-ag102.c +++ b/board/AndesTech/adp-ag102/adp-ag102.c @@ -25,6 +25,7 @@ #include <netdev.h> #include <asm/io.h> +#include <faraday/ftpci100.h> #include <faraday/ftsdc010.h> #ifdef CONFIG_FTSMC020 #include <faraday/ftsmc020.h> @@ -92,8 +93,6 @@ ulong board_flash_get_legacy(ulong base, int banknum, flash_info_t *info) void pci_init_board(void) { /* should be pci_ftpci100_init() */ - extern void pci_ftpci_init(); - pci_ftpci_init(); } #endif |