dm: cmd: Relocate subcommands when MANUAL_RELOC
authorMichal Simek <michal.simek@xilinx.com>
Fri, 4 Dec 2015 10:42:01 +0000 (11:42 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 7 Dec 2015 09:14:30 +0000 (10:14 +0100)
commitd6df048bca348a964943e6dedda8a674eb07dc30
treefb30250315476c700ef83103bf0c4ab3fda93954
parente4099c8b8053e7534cc50cdc8403792304eea973
dm: cmd: Relocate subcommands when MANUAL_RELOC

Subcommands contain pointers to functions which are not updated when
MANUAL_RELOC is enabled. This patch fix it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/dm/cmd_dm.c