Browse Source

mmc: mxcmmc: handle mmc_of_parse() errors during probe

Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Simon Baatz 12 years ago
parent
commit
b88576965b
1 changed files with 3 additions and 1 deletions
  1. 3 1
      drivers/mmc/host/mxcmmc.c

+ 3 - 1
drivers/mmc/host/mxcmmc.c

@@ -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 */