exynos: Fix passing of errors in exynos_mmc_init()
authorTobias Jakobi <tjakobi@math.uni-bielefeld.de>
Mon, 5 Oct 2015 11:47:51 +0000 (13:47 +0200)
committerMinkyu Kang <mk7.kang@samsung.com>
Tue, 13 Oct 2015 11:22:28 +0000 (20:22 +0900)
commit6a9fbb6e20eda538eb1cb394000d95c7577555ad
treeb688a37ed2f841c8ce0cc715f4af70820fa0eab3
parent1a9d1731f93ad170f0c19b93407630b0fb966fd0
exynos: Fix passing of errors in exynos_mmc_init()

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 <p.marczak@samsung.com>
Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/mmc/s5p_sdhci.c