mmc: mxcmmc: handle mmc_of_parse() errors during probe
authorSimon Baatz <gmbnomis@gmail.com>
Sun, 9 Jun 2013 20:14:14 +0000 (22:14 +0200)
committerChris Ball <cjb@laptop.org>
Thu, 27 Jun 2013 14:23:05 +0000 (10:23 -0400)
Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/mxcmmc.c

index 786448a10f15e2ce73eb620fbcbb8060ab7ad5d3..c174c6a0d224f86bcc2d91dc524940a5e90d616e 100644 (file)
@@ -1067,7 +1067,9 @@ static int mxcmci_probe(struct platform_device *pdev)
                goto out_release_mem;
        }
 
-       mmc_of_parse(mmc);
+       ret = mmc_of_parse(mmc);
+       if (ret)
+               goto out_free;
        mmc->ops = &mxcmci_ops;
 
        /* For devicetree parsing, the bus width is read from devicetree */