summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2014-12-18 09:41:39 (GMT)
committerUlf Hansson <ulf.hansson@linaro.org>2015-01-19 08:56:12 (GMT)
commit6d2b4218959a64d9c856d790001f389ce2a9e2c3 (patch)
tree0f231ba6cf5f904a51810671447eb5f097c2337f
parent0b5fce48a67d7fb5792e15ac635a1000f9dd6201 (diff)
downloadlinux-6d2b4218959a64d9c856d790001f389ce2a9e2c3.tar.xz
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 <jonas.jensen@gmail.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r--drivers/mmc/host/moxart-mmc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mmc/host/moxart-mmc.c b/drivers/mmc/host/moxart-mmc.c
index f3e18d0..d2a1ef6 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);