]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
esd:cmd_loadpci.c: Switch from "do_source" to "source"
authorTom Rini <trini@ti.com>
Mon, 21 Jul 2014 15:16:07 +0000 (11:16 -0400)
committerTom Rini <trini@ti.com>
Tue, 22 Jul 2014 11:44:24 +0000 (07:44 -0400)
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>
board/esd/common/cmd_loadpci.c

index 803179a47238c2f34ef563280f12dbc4221be3f3..95d18911c3dc366c0e415b1a30ec2b5b76f09752 100644 (file)
@@ -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: