[U-Boot] [PATCH v1 5/6] mmc: arm_pl180_mmci: Add missing clk_free
Patrice Chotard
patrice.chotard at st.com
Fri Jul 20 07:44:16 UTC 2018
Add missing clk_free() call in case of failure
when enabling the clock.
Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
---
drivers/mmc/arm_pl180_mmci.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mmc/arm_pl180_mmci.c b/drivers/mmc/arm_pl180_mmci.c
index e988bac62298..29a05ea0c39a 100644
--- a/drivers/mmc/arm_pl180_mmci.c
+++ b/drivers/mmc/arm_pl180_mmci.c
@@ -437,6 +437,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;
}
--
1.9.1
More information about the U-Boot
mailing list