Commit 1e20186e authored by Stefan Wahren's avatar Stefan Wahren Committed by Ulf Hansson

mmc: sdhci-brcmstb: handle mmc_of_parse() errors during probe

We need to handle mmc_of_parse() errors during probe otherwise the
MMC driver could start without proper initialization (e.g. power sequence).

Fixes: 476bf3d6 ("mmc: sdhci-brcmstb: Add driver for Broadcom BRCMSTB SoCs")
Signed-off-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 2b06e159
...@@ -55,7 +55,9 @@ static int sdhci_brcmstb_probe(struct platform_device *pdev) ...@@ -55,7 +55,9 @@ static int sdhci_brcmstb_probe(struct platform_device *pdev)
} }
sdhci_get_of_property(pdev); sdhci_get_of_property(pdev);
mmc_of_parse(host->mmc); res = mmc_of_parse(host->mmc);
if (res)
goto err;
/* /*
* Supply the existing CAPS, but clear the UHS modes. This * Supply the existing CAPS, but clear the UHS modes. This
......
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