]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite1d5eea7d7375124cfef662072a42d62559d7e69
tree187d8e143a04a7814c30349c424bf4adbf2ca00f
parent293be8cc954ed2305873a4ca60848fa5435d65ec
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