projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e99369d
)
mmc: sdhci-iproc: Clean up platform allocations if shdci init fails
author
Stefan Wahren
<stefan.wahren@i2se.com>
Sun, 17 Jan 2016 14:59:00 +0000
(14:59 +0000)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Mon, 29 Feb 2016 10:02:48 +0000
(11:02 +0100)
This patch adopts the changes from
475c9e43bfa7
("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>
drivers/mmc/host/sdhci-iproc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/sdhci-iproc.c
b/drivers/mmc/host/sdhci-iproc.c
index 3b423b0ad8e7a2ce0d3c9c5a85aee92b42a54143..e22060a80dbf60aaed440f7b77c237e369a88bda 100644
(file)
--- a/
drivers/mmc/host/sdhci-iproc.c
+++ b/
drivers/mmc/host/sdhci-iproc.c
@@
-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);