From mboxrd@z Thu Jan 1 00:00:00 1970 From: Minkyu Kang Date: Tue, 13 Oct 2015 20:52:04 +0900 Subject: [U-Boot] [PATCH v3 2/4] exynos: Fix passing of errors in exynos_mmc_init() In-Reply-To: <1444045673-31770-2-git-send-email-tjakobi@math.uni-bielefeld.de> References: <1444045673-31770-1-git-send-email-tjakobi@math.uni-bielefeld.de> <1444045673-31770-2-git-send-email-tjakobi@math.uni-bielefeld.de> Message-ID: <561CF064.70202@samsung.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 05/10/15 20:47, Tobias Jakobi wrote: > exynos_mmc_init() always returns zero, so for the caller > it looks like it never fails. > > Correct this by returning the error code of process_nodes(). > For process_nodes() do something similar and return early > when do_sdhci_init() fails. > > v2: Only fail in process_nodes() if we fail on all > available nodes. > > Acked-by: Przemyslaw Marczak > Signed-off-by: Tobias Jakobi > --- > drivers/mmc/s5p_sdhci.c | 18 ++++++++++++------ > 1 file changed, 12 insertions(+), 6 deletions(-) > applied to u-boot-samsung. Thanks, Minkyu Kang.