clk: sunxi: Make clocks setup functions return their clock
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 2 Feb 2016 08:47:10 +0000 (09:47 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 11 Feb 2016 17:17:03 +0000 (18:17 +0100)
commit96f185ac9a90264463254366f45d7b46482eec96
tree2c8d66c4a73d259d46e31c7c1e72ef67054a5429
parentd221b7a8781ce594249cb44644ec9fecd893957d
clk: sunxi: Make clocks setup functions return their clock

The clocks registration code in clk-sunxi was most of the time not
returning the struct clk (or struct clk array) that was registered,
preventing the users of such functions to manipulate it, for example to
protect it.

Make them return it so that we can start using it.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clk/sunxi/clk-sunxi.c