clk: rockchip: free memory in error cases when registering clock branches
authorShawn Lin <shawn.lin@rock-chips.com>
Tue, 2 Feb 2016 03:37:50 +0000 (11:37 +0800)
committerSasha Levin <sasha.levin@oracle.com>
Tue, 12 Jul 2016 12:48:01 +0000 (08:48 -0400)
commit35807de76e1c2b7d15eea2f947983fcd043a2db0
tree05f8910cd3343a061c88a13d3f14184962455761
parent8810dfe35a3861390b9c2d4ca79537274e1de1ac
clk: rockchip: free memory in error cases when registering clock branches

[ Upstream commit 2467b6745e0ae9c6cdccff24c4cceeb14b1cce3f ]

Add free memeory if rockchip_clk_register_branch fails.

Fixes: a245fecbb806 ("clk: rockchip: add basic infrastructure...")
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/clk/rockchip/clk.c