Commit 6d2b4218 authored by Ulf Hansson's avatar Ulf Hansson

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: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 0b5fce48
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment