mx53smd: Fix error handling in board_mmc_init()
When an invalid USDHC port is passed we should return -EINVAL instead of 0.
Also, return the error immediately on fsl_esdhc_initialize() failure.
Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
Showing
想要评论请 注册 或 登录