commit | 7df45443fee1399ccdcdf71bce0325104a62bec7 | [log] [tgz] |
---|---|---|
author | Soeren Moch <smoch@web.de> | Thu Nov 20 13:03:32 2014 +0100 |
committer | Stefano Babic <sbabic@denx.de> | Fri Nov 21 15:16:18 2014 +0100 |
tree | 759228d89a0a260eaf3f52b4ca5ec85ebd96595f | |
parent | cfaa23b7cc68cd5927e9e26fc8834692866cb976 [diff] |
tbs2910: 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. Based on similar patches by Fabio Estevam for mx6sabresd, mx53loco, wandboard Signed-off-by: Soeren Moch <smoch@web.de> Acked-by: Stefano Babic <sbabic@denx.de>