clk: mvebu: kirkwood: maintain clock init order
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Sat, 25 Jan 2014 18:19:10 +0000 (19:19 +0100)
committerJason Cooper <jason@lakedaemon.net>
Thu, 6 Feb 2014 18:07:01 +0000 (18:07 +0000)
commit58d516ae95cbf7eed44f85a01cdfad41f17b4197
tree6510e37f801d3af9b056e3fb761ddab29207d999
parent8f7fc5450b64210b08cb3daabb3473dbad197e54
clk: mvebu: kirkwood: 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/kirkwood.c
This page took 0.024964 seconds and 5 git commands to generate.