We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fb53c8 commit 20c002aCopy full SHA for 20c002a
1 file changed
components/drivers/core/platform_ofw.c
@@ -267,6 +267,12 @@ static int platform_ofw_device_probe(void)
267
268
if (ofw_node_root)
269
{
270
+ if ((node = rt_ofw_find_node_by_path("/clocks")))
271
+ {
272
+ platform_ofw_device_probe_once(node);
273
+ rt_ofw_node_put(node);
274
+ }
275
+
276
rt_ofw_node_get(ofw_node_root);
277
278
err = platform_ofw_device_probe_once(ofw_node_root);
@@ -279,12 +285,6 @@ static int platform_ofw_device_probe(void)
279
285
rt_ofw_node_put(node);
280
286
}
281
287
282
- if ((node = rt_ofw_find_node_by_path("/clocks")))
283
- {
284
- platform_ofw_device_probe_once(node);
- rt_ofw_node_put(node);
- }
-
288
rt_ofw_node_get(ofw_node_chosen);
289
if ((node = rt_ofw_get_child_by_compatible(ofw_node_chosen, "simple-framebuffer")))
290
0 commit comments