mx5/6: Fix cpu_mmc_init() return value
authorBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
Fri, 17 Aug 2012 10:42:55 +0000 (10:42 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 1 Sep 2012 12:58:27 +0000 (14:58 +0200)
commitecb0f3175522a6201abad9910be59512684f6cda
treef0abc9f273ff2de91c0bfd2cb927d4446a8b86dd
parentc6b52c4927df227c94650122363b8b342ddb62f0
mx5/6: Fix cpu_mmc_init() return value

Do not pretend to have initialized mmc successfully if CONFIG_FSL_ESDHC is not
defined. Instead, only implement a custom cpu_mmc_init() when it does something.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Cc: Stefano Babic <sbabic@denx.de>
Acked-by: Stefano Babic <sbabic@denx.de>
arch/arm/cpu/armv7/imx-common/cpu.c