projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8015093
)
mmc: arm_pl180_mmci: Add missing clk_free
author
Patrice Chotard
<patrice.chotard@st.com>
Wed, 25 Jul 2018 15:49:08 +0000
(17:49 +0200)
committer
Tom Rini
<trini@konsulko.com>
Fri, 3 Aug 2018 23:53:54 +0000
(19:53 -0400)
Add missing clk_free() call in case of failure
when enabling the clock.
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/mmc/arm_pl180_mmci.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/arm_pl180_mmci.c
b/drivers/mmc/arm_pl180_mmci.c
index
c4d94d1
..
1cd780b
100644
(file)
--- a/
drivers/mmc/arm_pl180_mmci.c
+++ b/
drivers/mmc/arm_pl180_mmci.c
@@
-430,6
+430,7
@@
static int arm_pl180_mmc_probe(struct udevice *dev)
ret = clk_enable(&clk);
if (ret) {
+ clk_free(&clk);
dev_err(dev, "failed to enable clock\n");
return ret;
}