clk: mvebu: dove: maintain clock init order
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Sat, 25 Jan 2014 18:19:09 +0000 (19:19 +0100)
committerJason Cooper <jason@lakedaemon.net>
Thu, 6 Feb 2014 18:06:52 +0000 (18:06 +0000)
commit8f7fc5450b64210b08cb3daabb3473dbad197e54
tree4a8aea7d6efa633e41c4392fdf01844002c610b9
parent0a11a6ae94373f37e738f7dc8f51d60a78d78a58
clk: mvebu: dove: 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>
Tested-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/clk/mvebu/dove.c