mmc: sdhci-brcmstb: handle mmc_of_parse() errors during probe
authorStefan Wahren <stefan.wahren@i2se.com>
Sun, 23 Dec 2018 20:59:18 +0000 (21:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jan 2020 09:24:17 +0000 (10:24 +0100)
commit668351ebe2035dec956ed131ce816e9fa66ec01a
tree8ff9832f43d4e7b409a2ba181c32b3240fa5ea46
parentdd274151b494c39aef19707a28a828d2bfc9ba18
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>
drivers/mmc/host/sdhci-brcmstb.c