From: Kefeng Wang Date: Wed, 1 Jun 2016 06:52:57 +0000 (+0800) Subject: arm64: Remove unnecessary of_platform_populate with default match table X-Git-Tag: v5.15~13154^2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a4ef881d25957f149864bd46a2099e92ec9c53c;p=platform%2Fkernel%2Flinux-starfive.git arm64: Remove unnecessary of_platform_populate with default match table After patch "of/platform: Add common method to populate default bus", it is possible for arch code to remove unnecessary callers of of_platform_populate with default match table. Acked-by: Catalin Marinas Cc: Will Deacon Cc: Arnd Bergmann Signed-off-by: Kefeng Wang Signed-off-by: Rob Herring --- diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index 8412520..c907e2f 100644 --- a/arch/arm64/kernel/setup.c +++ b/arch/arm64/kernel/setup.c @@ -40,7 +40,6 @@ #include #include #include -#include #include #include @@ -301,18 +300,6 @@ void __init setup_arch(char **cmdline_p) } } -static int __init arm64_device_init(void) -{ - if (of_have_populated_dt()) { - of_platform_populate(NULL, of_default_bus_match_table, - NULL, NULL); - } else if (acpi_disabled) { - pr_crit("Device tree not populated\n"); - } - return 0; -} -arch_initcall_sync(arm64_device_init); - static int __init topology_init(void) { int i;