clk: sunxi: declare OF clock provider
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Fri, 6 Sep 2013 12:59:57 +0000 (14:59 +0200)
committerSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Sun, 29 Sep 2013 19:07:16 +0000 (21:07 +0200)
commitbe0804513a506de96925f9ed1aa8dc1facd4c180
tree9037e4e75a525b14af2d8ee9ae713f2fd70f448e
parent8e7b25f1aa9accb8e4c80d0c019d769c979f2ec6
clk: sunxi: declare OF clock provider

Common clock framework allows to register clock providers to get called
on of_clk_init() by using CLK_OF_DECLARE. This converts sunxi clock
providers to make use of it and get rid of the mach specific clk init
call. As sunxi has a bunch of independent clk provider nodes, we hook
current clock init to board compatible to make it called once.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Mike Turquette <mturquette@linaro.org>
arch/arm/mach-sunxi/sunxi.c
drivers/clk/sunxi/clk-sunxi.c
include/linux/clk/sunxi.h [deleted file]