projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74fd5e3
)
mmc: sdhci-bcm2835: Clean up platform allocations if sdhci init fails.
author
Eric Anholt
<eric@anholt.net>
Fri, 29 May 2015 21:06:11 +0000
(14:06 -0700)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Mon, 1 Jun 2015 07:56:07 +0000
(09:56 +0200)
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-bcm2835.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mmc/host/sdhci-bcm2835.c
b/drivers/mmc/host/sdhci-bcm2835.c
index 0ef0343c603ad492937ef338af8b058ecc9f51e9..32f4046546b59210c3e783257d3f520602d301e4 100644
(file)
--- a/
drivers/mmc/host/sdhci-bcm2835.c
+++ b/
drivers/mmc/host/sdhci-bcm2835.c
@@
-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;