summaryrefslogtreecommitdiff
path: root/drivers/mmc/arm_pl180_mmci.c
diff options
context:
space:
mode:
authorPatrice Chotard <patrice.chotard@st.com>2018-07-25 17:49:08 +0200
committerTom Rini <trini@konsulko.com>2018-08-03 19:53:54 -0400
commit43d36a0bae9dec70af9b3158de06f45a2dca08ed (patch)
treeb523330d9d79a05d7e8511456382792dbddd0b9b /drivers/mmc/arm_pl180_mmci.c
parent8015093874070e4748fdb8abbfc1faa6bc63aa5f (diff)
mmc: arm_pl180_mmci: Add missing clk_free
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>
Diffstat (limited to 'drivers/mmc/arm_pl180_mmci.c')
-rw-r--r--drivers/mmc/arm_pl180_mmci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/arm_pl180_mmci.c b/drivers/mmc/arm_pl180_mmci.c
index c4d94d102c..1cd780b3ee 100644
--- 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;
}