[ Upstream commit
dc2d98fba34ceef62d15c8eb82aa87eacf9fc737 ]
The "sys_clk" resource is malloced by clk_get(),
it is not released when the function return.
Fixes: 15106d577ade ("ARM: OMAP: Add initialisation for the real-time counter.")
Signed-off-by: Chen Hui <judy.chenhui@huawei.com>
Message-Id: <
20221108141917.46796-1-judy.chenhui@huawei.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
}
rate = clk_get_rate(sys_clk);
+ clk_put(sys_clk);
if (soc_is_dra7xx()) {
/*