aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2014-03-27 11:43:32 +0100
committerMike Turquette <mturquette@linaro.org>2014-03-27 16:48:06 -0700
commit3f6d439f202243a1594f2e1b86620af0d342bbe6 (patch)
treeb29138825eacb8dda1a1bee6a7bb661c43bd9499 /drivers/clk
parentclk: sirf: update copyright years to 2014 (diff)
downloadlinux-dev-3f6d439f202243a1594f2e1b86620af0d342bbe6.tar.xz
linux-dev-3f6d439f202243a1594f2e1b86620af0d342bbe6.zip
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 1771b10d605d26ccee771a7fb4b08718 "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>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/clk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 1fbcb2b107e7..6b44022753cb 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -2612,7 +2612,7 @@ void __init of_clk_init(const struct of_device_id *matches)
parent->clk_init_cb = match->data;
parent->np = np;
- list_add(&parent->node, &clk_provider_list);
+ list_add_tail(&parent->node, &clk_provider_list);
}
while (!list_empty(&clk_provider_list)) {