mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-03 15:55:38 +00:00
clk: reverse default clk provider initialization order in of_clk_init()
This restores the default clocks registration order as parsed from
devicetree, i.e. as before commit 1771b10d60
"clk: respect the clock dependencies in of_clk_init", for when there
is no explicit parent clock dependencies between clock providers
specified in the device tree.
It prevents regressions (boot failure, division by 0 errors) on
imx and exynos platforms.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
This commit is contained in:
parent
7736692993
commit
3f6d439f20
1 changed files with 1 additions and 1 deletions
|
@ -2612,7 +2612,7 @@ void __init of_clk_init(const struct of_device_id *matches)
|
||||||
|
|
||||||
parent->clk_init_cb = match->data;
|
parent->clk_init_cb = match->data;
|
||||||
parent->np = np;
|
parent->np = np;
|
||||||
list_add(&parent->node, &clk_provider_list);
|
list_add_tail(&parent->node, &clk_provider_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
while (!list_empty(&clk_provider_list)) {
|
while (!list_empty(&clk_provider_list)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue