summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2017-10-12 12:26:48 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-10-16 09:31:41 +0200
commit5629ab048776d2d5d3f9d7ad5d424c956840f16a (patch)
tree65f6647b9903e3569eb7b3038636c84524b39f17
parent13f67845afc084805c631ad537241b5046c33858 (diff)
downloadbarebox-5629ab048776d2d5d3f9d7ad5d424c956840f16a.tar.gz
barebox-5629ab048776d2d5d3f9d7ad5d424c956840f16a.tar.xz
of: populate clock providers before other devices
Clocks are a basic resource, which may be needed early by other devices or even the bus driver (as is the case with the ARM AMBA bus). Register them before populating other devices. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/of/base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c
index 95bea4ee83..fb4d2c0394 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -1938,8 +1938,8 @@ int of_probe(void)
if (memory)
of_add_memory(memory, false);
- of_platform_populate(root_node, of_default_bus_match_table, NULL);
of_clk_init(root_node, NULL);
+ of_platform_populate(root_node, of_default_bus_match_table, NULL);
return 0;
}