Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <stefan.wahren@i2se.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Stefan Wahren and committed by
Ulf Hansson
1e20186e 2b06e159

+3 -1
+3 -1
drivers/mmc/host/sdhci-brcmstb.c
··· 55 55 } 56 56 57 57 sdhci_get_of_property(pdev); 58 - mmc_of_parse(host->mmc); 58 + res = mmc_of_parse(host->mmc); 59 + if (res) 60 + goto err; 59 61 60 62 /* 61 63 * Supply the existing CAPS, but clear the UHS modes. This