mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-17 15:27:00 +00:00
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 <patrice.chotard@st.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
8015093874
commit
43d36a0bae
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue