diff options
author | Wolfgang Denk <wd@denx.de> | 2009-10-09 00:03:18 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-10-09 00:03:18 +0200 |
commit | cd77dd109c4a439519a78c32eddc42bdebc7a61f (patch) | |
tree | c5534647cb1786044ef0f7e4ad4067725eddf11d /board/digsy_mtc | |
parent | 95c44ec485b46ffb43dbdaa299f1491a500fdadf (diff) | |
parent | afc3ba0fc4195624e79e21244380ed7cc2fd6969 (diff) | |
download | u-boot-imx-cd77dd109c4a439519a78c32eddc42bdebc7a61f.zip u-boot-imx-cd77dd109c4a439519a78c32eddc42bdebc7a61f.tar.gz u-boot-imx-cd77dd109c4a439519a78c32eddc42bdebc7a61f.tar.bz2 |
Merge branch 'reloc'
Diffstat (limited to 'board/digsy_mtc')
-rw-r--r-- | board/digsy_mtc/cmd_mtc.c | 30 | ||||
-rw-r--r-- | board/digsy_mtc/digsy_mtc.c | 2 |
2 files changed, 0 insertions, 32 deletions
diff --git a/board/digsy_mtc/cmd_mtc.c b/board/digsy_mtc/cmd_mtc.c index aa39611..ecea5b3 100644 --- a/board/digsy_mtc/cmd_mtc.c +++ b/board/digsy_mtc/cmd_mtc.c @@ -320,36 +320,6 @@ static int do_mtc_help(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) ARRAY_SIZE(cmd_mtc_sub), cmdtp, flag, argc, argv); } -/* Relocate the command table function pointers when running in RAM */ -int mtc_cmd_init_r(void) -{ - cmd_tbl_t *cmdtp; - - for (cmdtp = &cmd_mtc_sub[0]; cmdtp != - &cmd_mtc_sub[ARRAY_SIZE(cmd_mtc_sub)]; cmdtp++) { - ulong addr; - - addr = (ulong)(cmdtp->cmd) + gd->reloc_off; - cmdtp->cmd = - (int (*)(struct cmd_tbl_s *, int, int, char *[]))addr; - - addr = (ulong)(cmdtp->name) + gd->reloc_off; - cmdtp->name = (char *)addr; - - if (cmdtp->usage) { - addr = (ulong)(cmdtp->usage) + gd->reloc_off; - cmdtp->usage = (char *)addr; - } -#ifdef CONFIG_SYS_LONGHELP - if (cmdtp->help) { - addr = (ulong)(cmdtp->help) + gd->reloc_off; - cmdtp->help = (char *)addr; - } -#endif - } - return 0; -} - int cmd_mtc(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { cmd_tbl_t *c; diff --git a/board/digsy_mtc/digsy_mtc.c b/board/digsy_mtc/digsy_mtc.c index 9d77e54..cc6087b 100644 --- a/board/digsy_mtc/digsy_mtc.c +++ b/board/digsy_mtc/digsy_mtc.c @@ -240,7 +240,6 @@ void board_get_enetaddr (uchar * enet) int misc_init_r(void) { - extern int mtc_cmd_init_r (void); uchar enetaddr[6]; if (!eth_getenv_enetaddr("ethaddr", enetaddr)) { @@ -248,7 +247,6 @@ int misc_init_r(void) eth_setenv_enetaddr("ethaddr", enetaddr); } - mtc_cmd_init_r(); return 0; } |