diff options
author | Stefan Wahren <stefan.wahren@i2se.com> | 2018-12-23 21:59:18 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-27 14:50:28 +0100 |
commit | 85e9904df1fcc4f0847d28f225f8936a9a31dbf2 (patch) | |
tree | 62830eb927b3726cdc75ead81906736c6c016010 /drivers/mmc | |
parent | 8ce3c27633f1bd0b9c3c466953e98f070ba2bc62 (diff) | |
download | linux-stable-85e9904df1fcc4f0847d28f225f8936a9a31dbf2.tar.gz linux-stable-85e9904df1fcc4f0847d28f225f8936a9a31dbf2.tar.bz2 linux-stable-85e9904df1fcc4f0847d28f225f8936a9a31dbf2.zip |
mmc: sdhci-brcmstb: handle mmc_of_parse() errors during probe
[ Upstream commit 1e20186e706da8446f9435f2924cd65ab1397e73 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sdhci-brcmstb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-brcmstb.c b/drivers/mmc/host/sdhci-brcmstb.c index 552bddc5096c..1cd10356fc14 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 |