From 43d36a0bae9dec70af9b3158de06f45a2dca08ed Mon Sep 17 00:00:00 2001 From: Patrice Chotard Date: Wed, 25 Jul 2018 17:49:08 +0200 Subject: [PATCH] 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 Reviewed-by: Simon Glass --- 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 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; } -- 2.25.1