From: Ulf Hansson Date: Thu, 18 Dec 2014 09:41:39 +0000 (+0100) Subject: mmc: moxart: Handle error from mmc_of_parse() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6d2b4218959a64d9c856d790001f389ce2a9e2c3;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mmc: moxart: Handle error from mmc_of_parse() Since mmc_of_parse() may fail, let's deal with it and thus do proper error handling. Cc: Jonas Jensen Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/moxart-mmc.c b/drivers/mmc/host/moxart-mmc.c index f3e18d08e852..d2a1ef61ec97 100644 --- a/drivers/mmc/host/moxart-mmc.c +++ b/drivers/mmc/host/moxart-mmc.c @@ -599,7 +599,9 @@ static int moxart_probe(struct platform_device *pdev) goto out; } - mmc_of_parse(mmc); + ret = mmc_of_parse(mmc); + if (ret) + goto out; dma_cap_zero(mask); dma_cap_set(DMA_SLAVE, mask);