mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
mmc: sdhci-brcmstb: handle mmc_of_parse() errors during probe
[ Upstream commit1e20186e70] We need to handle mmc_of_parse() errors during probe otherwise the MMC driver could start without proper initialization (e.g. power sequence). Fixes:476bf3d62d("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
dd274151b4
commit
668351ebe2
@@ -90,7 +90,9 @@ static int sdhci_brcmstb_probe(struct platform_device *pdev)
|
||||
host->mmc->caps2 |= MMC_CAP2_HC_ERASE_SZ;
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user