clk: mvebu: armada-xp: maintain clock init order
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Sat, 25 Jan 2014 18:19:08 +0000 (19:19 +0100)
committerJason Cooper <jason@lakedaemon.net>
Thu, 6 Feb 2014 18:06:50 +0000 (18:06 +0000)
commit0a11a6ae94373f37e738f7dc8f51d60a78d78a58
tree071c2f0e394865a0bc1ff75768775cef41d3dc59
parent07ad6836fa21b8ae1715d5f82a0d28c4140e1e73
clk: mvebu: armada-xp: maintain clock init order

Init order of CLK_OF_DECLARE'd drivers depends on compile order.
Unfortunately, clk_of_init does not allow drivers to return errors,
e.g. -EPROBE_DEFER if parent clocks have not been registered, yet.

To avoid init order woes for MVEBU clock drivers, we take care of
proper init order ourselves. This patch joins core-clk and gating-clk
init to maintain proper init order.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/clk/mvebu/armada-xp.c