From: Patrice Chotard Date: Wed, 25 Jul 2018 15:49:08 +0000 (+0200) Subject: mmc: arm_pl180_mmci: Add missing clk_free X-Git-Tag: v2018.09-rc2~75 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=43d36a0bae9dec70af9b3158de06f45a2dca08ed;p=oweals%2Fu-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; }