Commit 42a18d1c authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Jason Cooper

ARM: mvebu: mvebu-soc-id: add missing clk_put() call

The mvebu-soc-id code in mach-mvebu/ needs to enable a clock to read
the SoC device ID and revision number. To do so, it does a clk_get(),
then a clk_prepare_enable(), reads the value, and disables the clock
with clk_disable_unprepare(). However, it forgets to clk_put() the
clock. This commit fixes this issue.
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Link: https://lkml.kernel.org/r/1399903900-29977-2-git-send-email-thomas.petazzoni@free-electrons.com
Cc: <stable@vger.kernel.org> # 3.14+
Fixes: af8d1c63 ("ARM: mvebu: Add support to get the ID and the revision of a SoC")
Acked-by: default avatarGregory CLEMENT <gregory.clement@free-electrons.com>
Tested-by: default avatarGregory CLEMENT <gregory.clement@free-electrons.com>
Tested-by: default avatarAndrew Lunn <andrew@lunn.ch>
Tested-by: default avatarWilly Tarreau <w@1wt.eu>
Signed-off-by: default avatarJason Cooper <jason@lakedaemon.net>
parent 1cc9d481
...@@ -109,6 +109,7 @@ static int __init mvebu_soc_id_init(void) ...@@ -109,6 +109,7 @@ static int __init mvebu_soc_id_init(void)
res_ioremap: res_ioremap:
clk_disable_unprepare(clk); clk_disable_unprepare(clk);
clk_put(clk);
clk_err: clk_err:
of_node_put(child); of_node_put(child);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment