From: Patrice Chotard Date: Tue, 24 Jul 2018 11:39:24 +0200 Subject: [U-Boot] [PATCH v2 5/6] mmc: arm_pl180_mmci: Add missing clk_free In-Reply-To: <1532425165-29027-1-git-send-email-patrice.chotard@st.com> References: <1532425165-29027-1-git-send-email-patrice.chotard@st.com> Message-ID: <1532425165-29027-6-git-send-email-patrice.chotard@st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Add missing clk_free() call in case of failure when enabling the clock. Signed-off-by: Patrice Chotard --- Changes in v2: None 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 c4d94d102cc1..1cd780b3eec0 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; } -- 1.9.1