Skip to content

Commit f67f10b

Browse files
robherringpalmer-dabbelt
authored andcommitted
riscv: remove unnecessary of_platform_populate call
The DT core will call of_platform_default_populate, so it is not necessary for arch specific code to call it unless there are custom match entries, auxdata or parent device. Neither of those apply here, so remove the call. Cc: Palmer Dabbelt <[email protected]> Cc: Albert Ou <[email protected]> Cc: [email protected] Signed-off-by: Rob Herring <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 781c8fe commit f67f10b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

arch/riscv/kernel/setup.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,3 @@ void __init setup_arch(char **cmdline_p)
220220
riscv_fill_hwcap();
221221
}
222222

223-
static int __init riscv_device_init(void)
224-
{
225-
return of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
226-
}
227-
subsys_initcall_sync(riscv_device_init);

0 commit comments

Comments
 (0)