]> git.sur5r.net Git - u-boot/commit
mx6sabresd: Fix error handling in board_mmc_init()
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 6 Nov 2014 14:24:24 +0000 (12:24 -0200)
committerStefano Babic <sbabic@denx.de>
Thu, 13 Nov 2014 17:06:13 +0000 (18:06 +0100)
commit952fdc4e83f44691908aa892c9ff476dbc9371f8
tree028e18de115b00124bd52e73a11aca7c87b05653
parent11076f0cac4cceff78fe673c52b6891ee9286471
mx6sabresd: 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: Fabio Estevam <fabio.estevam@freescale.com>
board/freescale/mx6sabresd/mx6sabresd.c