From: Stefan Wahren Date: Sun, 23 Dec 2018 20:59:18 +0000 (+0100) Subject: mmc: sdhci-brcmstb: handle mmc_of_parse() errors during probe X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1e20186e706da8446f9435f2924cd65ab1397e73;p=linux.git 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: 476bf3d62d5c ("mmc: sdhci-brcmstb: Add driver for Broadcom BRCMSTB SoCs") Signed-off-by: Stefan Wahren Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/sdhci-brcmstb.c b/drivers/mmc/host/sdhci-brcmstb.c index 552bddc5096ce..1cd10356fc14f 100644 --- a/drivers/mmc/host/sdhci-brcmstb.c +++ b/drivers/mmc/host/sdhci-brcmstb.c @@ -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