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)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 2 Feb 2016 21:09:50 +0000 (22:09 +0100)
commit2467b6745e0ae9c6cdccff24c4cceeb14b1cce3f
treeab6f86071b045950e3272f4a83ffc8aa8207f193
parent89aa027e6019d6e631a6c18c877e01f890a1800f
clk: rockchip: free memory in error cases when registering clock branches

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>
drivers/clk/rockchip/clk.c