clk: rockchip: Free the memory on the error path
authorShawn Lin <shawn.lin@rock-chips.com>
Wed, 28 Feb 2018 06:56:48 +0000 (14:56 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Fri, 2 Mar 2018 07:51:03 +0000 (08:51 +0100)
commitfd3cbbfb76a422a5b0f85649b677477a308866db
tree187d8e143a04a7814c30349c424bf4adbf2ca00f
parentdd5bdb797f0a6e0d3d2aa86af60f92b094705d24
clk: rockchip: Free the memory on the error path

rockchip_clk_register_branch() and rockchip_clk_register_frac_branch()
should free the memory internally when seeing any failure.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
drivers/clk/rockchip/clk.c