From: Patrice Chotard Date: Wed, 25 Jul 2018 15:49:08 +0000 (+0200) Subject: mmc: arm_pl180_mmci: Add missing clk_free X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=43d36a0bae9dec70af9b3158de06f45a2dca08ed;p=u-boot.git 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 --- 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; }