OSDN Git Service

clk: sunxi: factors: Add clk cleanup in sunxi_factors_register() error path
authorChen-Yu Tsai <wens@csie.org>
Mon, 25 Jan 2016 13:15:39 +0000 (21:15 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 27 Jan 2016 17:56:42 +0000 (18:56 +0100)
commit78ca95c76900e7587d6e076f8162a440f19431ae
treeb06e987cda92dc231727f64474c6e946b61a5245
parentb3e919e03ce84d9768c0e1c12066f502c5bbd485
clk: sunxi: factors: Add clk cleanup in sunxi_factors_register() error path

sunxi_factors_register() does not check for failures or cleanup after
clk_register_composite() or other clk-related calls.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clk/sunxi/clk-factors.c