summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/patches/barebox-2017.08.0/0002-of-populate-clock-providers-before-other-devices.patch
blob: 042f82cfa37cdb6e52d88a6aaaf8029aea5ec9fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Lucas Stach <l.stach@pengutronix.de>
Date: Fri, 1 Sep 2017 17:52:18 +0200
Subject: [PATCH] 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>
---
 drivers/of/base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/of/base.c b/drivers/of/base.c
index ea330d131012..1649148dc0c6 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -1915,8 +1915,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;
 }