mmc: sdhci-iproc: Clean up platform allocations if shdci init fails
This patch adopts the changes from 475c9e43bf
("mmc: sdhci-bcm2835:
Clean up platform allocations if sdhci init fails") to sdhci-iproc.
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Acked-by: Scott Branden <sbranden@broadcom.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
e99369dc95
commit
1d6ad05777
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue