Commit b8857696 authored by Simon Baatz's avatar Simon Baatz Committed by Chris Ball

mmc: mxcmmc: handle mmc_of_parse() errors during probe

Signed-off-by: default avatarSimon Baatz <gmbnomis@gmail.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 274a752b
...@@ -1067,7 +1067,9 @@ static int mxcmci_probe(struct platform_device *pdev) ...@@ -1067,7 +1067,9 @@ static int mxcmci_probe(struct platform_device *pdev)
goto out_release_mem; goto out_release_mem;
} }
mmc_of_parse(mmc); ret = mmc_of_parse(mmc);
if (ret)
goto out_free;
mmc->ops = &mxcmci_ops; mmc->ops = &mxcmci_ops;
/* For devicetree parsing, the bus width is read from devicetree */ /* For devicetree parsing, the bus width is read from devicetree */
......
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