summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/patches/barebox-2017.10.0/0002-of-populate-clock-providers-before-other-devices.patch
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2017-10-11 10:50:07 +0200
committerRobert Schwebel <r.schwebel@pengutronix.de>2017-10-11 15:16:48 +0200
commitd84ca1a1a557f1c1e0ed6c568f57c42a889e2695 (patch)
tree5ed28c57415a768dd9ac9a9e408253e7f8fe7060 /configs/platform-v7a/patches/barebox-2017.10.0/0002-of-populate-clock-providers-before-other-devices.patch
parent12b901f757db290f768e3d3aded49fb7f0d03b82 (diff)
downloadDistroKit-d84ca1a1a557f1c1e0ed6c568f57c42a889e2695.tar.gz
DistroKit-d84ca1a1a557f1c1e0ed6c568f57c42a889e2695.tar.xz
barebox: version bump 2017.08.0 -> 2017.10.0
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> Reviewed-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Diffstat (limited to 'configs/platform-v7a/patches/barebox-2017.10.0/0002-of-populate-clock-providers-before-other-devices.patch')
-rw-r--r--configs/platform-v7a/patches/barebox-2017.10.0/0002-of-populate-clock-providers-before-other-devices.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/configs/platform-v7a/patches/barebox-2017.10.0/0002-of-populate-clock-providers-before-other-devices.patch b/configs/platform-v7a/patches/barebox-2017.10.0/0002-of-populate-clock-providers-before-other-devices.patch
new file mode 100644
index 0000000..9bb617b
--- /dev/null
+++ b/configs/platform-v7a/patches/barebox-2017.10.0/0002-of-populate-clock-providers-before-other-devices.patch
@@ -0,0 +1,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 95bea4ee836d..fb4d2c03946e 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;
+ }