提交 475c9e43 编写于 作者: E Eric Anholt 提交者: Ulf Hansson

mmc: sdhci-bcm2835: Clean up platform allocations if sdhci init fails.

Signed-off-by: NEric Anholt <eric@anholt.net>
Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
上级 74fd5e30
......@@ -173,8 +173,11 @@ static int bcm2835_sdhci_probe(struct platform_device *pdev)
goto err;
}
return sdhci_add_host(host);
ret = sdhci_add_host(host);
if (ret)
goto err;
return 0;
err:
sdhci_pltfm_free(pdev);
return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册