i2c: cmd: Relocate subcommands when MANUAL_RELOC
authorMichal Simek <michal.simek@xilinx.com>
Fri, 4 Dec 2015 15:56:57 +0000 (16:56 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 7 Dec 2015 09:14:30 +0000 (10:14 +0100)
commite4099c8b8053e7534cc50cdc8403792304eea973
tree02d305ddf52c8af03ef99a9cc2c02624c8f9ac8b
parentc643f3ef9b68a2444c9672bc7b72735a5b7855b0
i2c: 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>
Acked-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/cmd_i2c.c