diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-05-12 10:11:39 -0400 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2014-05-13 10:54:46 -0400 |
commit | 42a18d1cf484d02e23afadfa5dc09356e6bef9fa (patch) | |
tree | d66df8a167a7ffd4ddbbb8f016ae7569bfbb08fa | |
parent | 1cc9d48145b81e307fab94a5cf6ee66ec2f0de60 (diff) |
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: Thomas 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: af8d1c63afcb ("ARM: mvebu: Add support to get the ID and the revision of a SoC")
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Tested-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
-rw-r--r-- | arch/arm/mach-mvebu/mvebu-soc-id.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-mvebu/mvebu-soc-id.c b/arch/arm/mach-mvebu/mvebu-soc-id.c index f3d4cf53f746..b52af6f4a0c6 100644 --- a/arch/arm/mach-mvebu/mvebu-soc-id.c +++ b/arch/arm/mach-mvebu/mvebu-soc-id.c | |||
@@ -109,6 +109,7 @@ static int __init mvebu_soc_id_init(void) | |||
109 | 109 | ||
110 | res_ioremap: | 110 | res_ioremap: |
111 | clk_disable_unprepare(clk); | 111 | clk_disable_unprepare(clk); |
112 | clk_put(clk); | ||
112 | 113 | ||
113 | clk_err: | 114 | clk_err: |
114 | of_node_put(child); | 115 | of_node_put(child); |