env_mmc: Fix crashing bug encountered after enabling ARM relocation
authorSteve Sakoman <steve@sakoman.com>
Mon, 11 Oct 2010 12:51:39 +0000 (05:51 -0700)
committerWolfgang Denk <wd@denx.de>
Wed, 13 Oct 2010 19:52:13 +0000 (21:52 +0200)
commitd470a6f60ad0d627c21a2769513d2017f9a0da76
treed004fc1d1ada88f8341e9069b7ef7fdff40c14ac
parente1b4c57096b87b4ada56df4154d9acee6a59141f
env_mmc: Fix crashing bug encountered after enabling ARM relocation

The crash was occuring in env_relocate because it was being called prior
to mmc_initialize.  This patch moves the MMC initialization earlier in
the init process.

This patch also cleans up the env_relocate_spec code in env_mmc.c

Signed-off-by: Steve Sakoman <steve.sakoman@linaro.org>
Acked-by: Stefano Babic <sbabic@denx.de>
arch/arm/lib/board.c
common/env_mmc.c