Commit c560ecfe authored by Catalin Marinas's avatar Catalin Marinas
Browse files

arm64: Invoke the of_platform_populate() at arch_initcall() level

The of_platform_populate() is currently invoked at device_initcall()
level. There are however drivers that use platform_driver_probe()
directly and they need the devices to be populated. This patch makes the
of_platform_populate() and arch_initcall().
Signed-off-by: default avatarCatalin Marinas <>
Reported-by: default avatarBenoit Lecardonnel <>
Tested-by: default avatarBenoit Lecardonnel <>
parent 9c413e25
......@@ -282,12 +282,13 @@ void __init setup_arch(char **cmdline_p)
static int __init arm64_of_clk_init(void)
static int __init arm64_device_init(void)
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
return 0;
static DEFINE_PER_CPU(struct cpu, cpu_data);
......@@ -305,13 +306,6 @@ static int __init topology_init(void)
static int __init arm64_device_probe(void)
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
return 0;
static const char *hwcap_str[] = {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment