summaryrefslogtreecommitdiff
path: root/board/AndesTech/adp-ag102
diff options
context:
space:
mode:
Diffstat (limited to 'board/AndesTech/adp-ag102')
-rw-r--r--board/AndesTech/adp-ag102/Makefile4
-rw-r--r--board/AndesTech/adp-ag102/adp-ag102.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/board/AndesTech/adp-ag102/Makefile b/board/AndesTech/adp-ag102/Makefile
index ef5334171..ec67dd04b 100644
--- a/board/AndesTech/adp-ag102/Makefile
+++ b/board/AndesTech/adp-ag102/Makefile
@@ -11,8 +11,8 @@ LIB = $(obj)lib$(BOARD).o
COBJS := adp-ag102.o
-SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
+SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS-y) $(SOBJS-y))
$(LIB): $(OBJS)
$(call cmd_link_o_target, $(OBJS))
diff --git a/board/AndesTech/adp-ag102/adp-ag102.c b/board/AndesTech/adp-ag102/adp-ag102.c
index 6f0d0ee12..3f879ab3c 100644
--- a/board/AndesTech/adp-ag102/adp-ag102.c
+++ b/board/AndesTech/adp-ag102/adp-ag102.c
@@ -10,6 +10,7 @@
#include <netdev.h>
#include <asm/io.h>
+#include <faraday/ftpci100.h>
#include <faraday/ftsdc010.h>
#ifdef CONFIG_FTSMC020
#include <faraday/ftsmc020.h>
@@ -77,8 +78,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