Skip to content
Snippets Groups Projects
Commit ec4f5040 authored by Tom Rini's avatar Tom Rini
Browse files

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: default avatarTom Rini <trini@ti.com>
parent 3364b189
No related branches found
No related tags found
No related merge requests found
...@@ -12,9 +12,6 @@ ...@@ -12,9 +12,6 @@
#endif #endif
#if defined(CONFIG_CMD_BSP) #if defined(CONFIG_CMD_BSP)
extern int do_source (cmd_tbl_t *, int, int, char *[]);
#define ADDRMASK 0xfffff000 #define ADDRMASK 0xfffff000
/* /*
...@@ -27,7 +24,6 @@ int do_loadpci(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) ...@@ -27,7 +24,6 @@ int do_loadpci(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
int count2 = 0; int count2 = 0;
char addr[16]; char addr[16];
char str[] = "\\|/-"; char str[] = "\\|/-";
char *local_args[2];
u32 la, ptm1la; u32 la, ptm1la;
#if defined(CONFIG_440) #if defined(CONFIG_440)
...@@ -84,9 +80,7 @@ int do_loadpci(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) ...@@ -84,9 +80,7 @@ int do_loadpci(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
* Boot image via "source" command * Boot image via "source" command
*/ */
printf("executing script at addr 0x%s ...\n", addr); printf("executing script at addr 0x%s ...\n", addr);
local_args[0] = addr; source(la, NULL);
local_args[1] = NULL;
do_source(cmdtp, 0, 1, local_args);
break; break;
case 2: case 2:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment