mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
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>
This commit is contained in:
parent
0b5fce48a6
commit
6d2b421895
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue