mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 00:52:01 +00:00
mmc: sdhci-bcm2835: Clean up platform allocations if sdhci init fails.
Signed-off-by: Eric Anholt <eric@anholt.net> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
74fd5e30cc
commit
475c9e43bf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user