esd:cmd_loadpci.c: Switch from "do_source" to "source"
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 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 <[email protected]>
--- board/esd/common/cmd_loadpci.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
board/esd/common/cmd_loadpci.c +1 -7
@@ -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 :
Signature · 1 line
1.7.9.5
PATCH 1/1 esd:cmd_loadpci.c: Switch from "do_source" to "source"
Quoted 5 lines · Tom Rini
Rather than calling
do_sourcedirectly (which is not officially exported fromcmd_source.c) call 'source' which is exported and requires a little less code to do so as well.Signed-off-by Tom Rini <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140721/849fbbf8/attachment.pgp>