Skip to content

Commit

Permalink
mmc: sdhci-brcmstb: handle mmc_of_parse() errors during probe
Browse files Browse the repository at this point in the history
We need to handle mmc_of_parse() errors during probe otherwise the
MMC driver could start without proper initialization (e.g. power sequence).

Fixes: 476bf3d ("mmc: sdhci-brcmstb: Add driver for Broadcom BRCMSTB SoCs")
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
  • Loading branch information
Stefan Wahren authored and Ulf Hansson committed Feb 25, 2019
1 parent 2b06e15 commit 1e20186
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/mmc/host/sdhci-brcmstb.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ static int sdhci_brcmstb_probe(struct platform_device *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
Expand Down

0 comments on commit 1e20186

Please sign in to comment.