summaryrefslogtreecommitdiff
path: root/board/hymod
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-10-24 18:00:02 +0000
committerGerrit <chrome-bot@google.com>2011-11-17 17:09:51 -0800
commit52d640d58d0bba723df03de4493cdcab167ca2ee (patch)
tree744de14e4752c84655929a6a54237a597c7b66c3 /board/hymod
parentda7491fc37940f82c15b44b03dfd209502235756 (diff)
BACKPORT: net: tftpput: Rename TFTP to TFTPGET
This is a better name for this protocol. Also remove the typedef to keep checkpatch happy, and move zeroing of NetBootFileXferSize a little earlier since TFTPPUT will need to change this. (cherry-picked from e4bf0c5) Change-Id: I90d03045de0231553a693f7119bdcc67a908e3c9 Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/11796
Diffstat (limited to 'board/hymod')
-rw-r--r--board/hymod/bsp.c2
-rw-r--r--board/hymod/fetch.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/board/hymod/bsp.c b/board/hymod/bsp.c
index 9a929413bd..3a599a6a1d 100644
--- a/board/hymod/bsp.c
+++ b/board/hymod/bsp.c
@@ -200,7 +200,7 @@ do_fpga (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
load_addr = simple_strtoul (argv[3], NULL, 16);
NetBootFileXferSize = 0;
- if (NetLoop (TFTP) <= 0) {
+ if (NetLoop(TFTPGET) <= 0) {
printf ("tftp transfer failed - aborting "
"fgpa load\n");
return 1;
diff --git a/board/hymod/fetch.c b/board/hymod/fetch.c
index e121d5565e..f5f9582e95 100644
--- a/board/hymod/fetch.c
+++ b/board/hymod/fetch.c
@@ -55,7 +55,7 @@ fetch_and_parse (char *fn, ulong addr, int (*cback)(uchar *, uchar *))
load_addr = addr;
NetBootFileXferSize = 0;
- if (NetLoop (TFTP) == 0) {
+ if (NetLoop(TFTPGET) == 0) {
printf ("tftp transfer of file '%s' failed\n", fn);
return (0);
}