clk: rockchip: free memory in error cases when registering clock branches

commit 2467b6745e upstream.

Add free memeory if rockchip_clk_register_branch fails.

Fixes: a245fecbb8 ("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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Shawn Lin 2016-02-02 11:37:50 +08:00 • committed by Greg Kroah-Hartman
commit c7ea1f7642