clk: sunxi: factors: Add unregister function
authorChen-Yu Tsai <wens@csie.org>
Mon, 25 Jan 2016 13:15:40 +0000 (21:15 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 27 Jan 2016 17:57:31 +0000 (18:57 +0100)
commit4cbeaebb8af1c86691d1a2d3328d82a01f4380a5
tree65c31e18b9bf9a00dadb4a59e5c94f7889504837
parent78ca95c76900e7587d6e076f8162a440f19431ae
clk: sunxi: factors: Add unregister function

sunxi's factors clk did not have an unregister function. This means
multiple structs were leaked whenever a factors clk was unregistered.

Add an unregister function for it. Also keep pointers to the mux and
gate structs so they can be freed.

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
drivers/clk/sunxi/clk-factors.h