Skip to content

Commit 9d52ba3

Browse files
terpstrapalmer-dabbelt
authored andcommitted
base: fix order of OF initialization
This fixes: [ 0.010000] cpu cpu0: Error -2 creating of_node link ... which you get for every CPU on all architectures with a OF cpu/ node. This affects riscv, nios, etc. Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 60cc43f commit 9d52ba3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/base/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ void __init driver_init(void)
3030
/* These are also core pieces, but must come after the
3131
* core core pieces.
3232
*/
33+
of_core_init();
3334
platform_bus_init();
3435
cpu_dev_init();
3536
memory_dev_init();
3637
container_dev_init();
37-
of_core_init();
3838
}

0 commit comments

Comments
 (0)