summaryrefslogtreecommitdiffstats
path: root/board/esd/common
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2014-07-21 11:16:07 -0400
committerTom Rini <trini@ti.com>2014-07-22 07:44:24 -0400
commitec4f5040f73cfedfe9b87e319595291a4f116a15 (patch)
tree8980b209126fd598e9ffd78f0d33327fd267e36b /board/esd/common
parent3364b1898c23f8016548acc2c099b08e865b8a61 (diff)
downloadblackbird-obmc-uboot-ec4f5040f73cfedfe9b87e319595291a4f116a15.tar.gz
blackbird-obmc-uboot-ec4f5040f73cfedfe9b87e319595291a4f116a15.zip
esd:cmd_loadpci.c: Switch from "do_source" to "source"
Rather than calling do_source directly (which is not officially exported from cmd_source.c) call 'source' which is exported and requires a little less code to do so as well. Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'board/esd/common')
-rw-r--r--board/esd/common/cmd_loadpci.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/board/esd/common/cmd_loadpci.c b/board/esd/common/cmd_loadpci.c
index 803179a472..95d18911c3 100644
--- a/board/esd/common/cmd_loadpci.c
+++ b/board/esd/common/cmd_loadpci.c
@@ -12,9 +12,6 @@
#endif
#if defined(CONFIG_CMD_BSP)
-
-extern int do_source (cmd_tbl_t *, int, int, char *[]);
-
#define ADDRMASK 0xfffff000
/*
@@ -27,7 +24,6 @@ int do_loadpci(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
int count2 = 0;
char addr[16];
char str[] = "\\|/-";
- char *local_args[2];
u32 la, ptm1la;
#if defined(CONFIG_440)
@@ -84,9 +80,7 @@ int do_loadpci(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
* Boot image via "source" command
*/
printf("executing script at addr 0x%s ...\n", addr);
- local_args[0] = addr;
- local_args[1] = NULL;
- do_source(cmdtp, 0, 1, local_args);
+ source(la, NULL);
break;
case 2:
OpenPOWER on IntegriCloud