]> git.baikalelectronics.ru Git - kernel.git/commit
clk: sunxi: fix initialization of basic clocks
authorEmilio López <emilio@elopez.com.ar>
Tue, 23 Jul 2013 01:01:05 +0000 (22:01 -0300)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 26 Aug 2013 08:48:39 +0000 (10:48 +0200)
commitb054afb431dc194d6e761b83ed4c179a55f6a967
tree13910720ae6cabe4a48f0b4afa0122bc1cd53ef0
parent08fb5a5ee9ce7cee7a5d6a0047f20a812d0d8617
clk: sunxi: fix initialization of basic clocks

With the recent move towards CLK_OF_DECLARE(...), the driver stopped
initializing osc32k, which is compatible "fixed-clock". This is because
we never called of_clk_init(NULL). Fix this by moving the only other
simple clock (osc24M) to use CLK_OF_DECLARE(...) and call of_clk_init(NULL)
to initialize both of them.

Signed-off-by: Emilio López <emilio@elopez.com.ar>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: Mike Turquette <mturquette@linaro.org>
drivers/clk/sunxi/clk-sunxi.c