summaryrefslogtreecommitdiff
path: root/board/inka4x0/inkadiag.c
diff options
context:
space:
mode:
authorPeter Tyser <ptyser@xes-inc.com>2009-09-21 11:20:30 -0500
committerWolfgang Denk <wd@denx.de>2009-10-03 10:17:56 +0200
commitb5650c5d8c99100144d8e4e9af910405f857bb7a (patch)
tree3cd7e46babf25fcce8638aeb3b0ae634a23bd9ef /board/inka4x0/inkadiag.c
parente6b05e774d7ce1641613cdeffb69c1d48139a869 (diff)
downloadu-boot-imx-b5650c5d8c99100144d8e4e9af910405f857bb7a.zip
u-boot-imx-b5650c5d8c99100144d8e4e9af910405f857bb7a.tar.gz
u-boot-imx-b5650c5d8c99100144d8e4e9af910405f857bb7a.tar.bz2
ppc: Remove board-specific command table relocation fixups
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Diffstat (limited to 'board/inka4x0/inkadiag.c')
-rw-r--r--board/inka4x0/inkadiag.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/board/inka4x0/inkadiag.c b/board/inka4x0/inkadiag.c
index 3761ef6..0a75abd 100644
--- a/board/inka4x0/inkadiag.c
+++ b/board/inka4x0/inkadiag.c
@@ -484,31 +484,3 @@ U_BOOT_CMD(inkadiag, 6, 1, do_inkadiag,
"[inkadiag what ...]\n"
" - perform a diagnosis on inka hardware\n"
"'inkadiag' performs hardware tests.");
-
-/* Relocate the command table function pointers when running in RAM */
-int inkadiag_init_r (void) {
- cmd_tbl_t *cmdtp;
-
- for (cmdtp = &cmd_inkadiag_sub[0]; cmdtp !=
- &cmd_inkadiag_sub[ARRAY_SIZE(cmd_inkadiag_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;
-}