diff options
author | Simon Glass <sjg@chromium.org> | 2013-05-15 06:23:54 (GMT) |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-06-04 20:06:31 (GMT) |
commit | ea5427e2607041f6f5cf0bff8f5c85bc7f67dbf8 (patch) | |
tree | 81b4a2ddd66a6992ef806449a916b644f53e62b5 /common | |
parent | 6236fd75af89cbef173b675a96dd26da56242452 (diff) | |
download | u-boot-fsl-qoriq-ea5427e2607041f6f5cf0bff8f5c85bc7f67dbf8.tar.xz |
net: Add prototype for update_tftp
This function should be declared in net.h.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_fitupd.c | 3 | ||||
-rw-r--r-- | common/main.c | 4 |
2 files changed, 1 insertions, 6 deletions
diff --git a/common/cmd_fitupd.c b/common/cmd_fitupd.c index 7a3789e..618ff7c 100644 --- a/common/cmd_fitupd.c +++ b/common/cmd_fitupd.c @@ -8,13 +8,12 @@ #include <common.h> #include <command.h> +#include <net.h> #if !defined(CONFIG_UPDATE_TFTP) #error "CONFIG_UPDATE_TFTP required" #endif -extern int update_tftp(ulong addr); - static int do_fitupd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { ulong addr = 0UL; diff --git a/common/main.c b/common/main.c index 953ef29..9890184 100644 --- a/common/main.c +++ b/common/main.c @@ -57,10 +57,6 @@ DECLARE_GLOBAL_DATA_PTR; void inline __show_boot_progress (int val) {} void show_boot_progress (int val) __attribute__((weak, alias("__show_boot_progress"))); -#if defined(CONFIG_UPDATE_TFTP) -int update_tftp (ulong addr); -#endif /* CONFIG_UPDATE_TFTP */ - #define MAX_DELAY_STOP_STR 32 #undef DEBUG_PARSER |