提交 1d6ad057 编写于 作者: S Stefan Wahren 提交者: Ulf Hansson

mmc: sdhci-iproc: Clean up platform allocations if shdci init fails

This patch adopts the changes from 475c9e43 ("mmc: sdhci-bcm2835:
Clean up platform allocations if sdhci init fails") to sdhci-iproc.
Signed-off-by: NStefan Wahren <stefan.wahren@i2se.com>
Acked-by: NScott Branden <sbranden@broadcom.com>
Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
上级 e99369dc
......@@ -213,7 +213,11 @@ static int sdhci_iproc_probe(struct platform_device *pdev)
host->caps1 = iproc_host->data->caps1;
}
return sdhci_add_host(host);
ret = sdhci_add_host(host);
if (ret)
goto err;
return 0;
err:
sdhci_pltfm_free(pdev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册