]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
arm64: Remove unnecessary of_platform_populate with default match table
authorKefeng Wang <wangkefeng.wang@huawei.com>
Wed, 1 Jun 2016 06:52:57 +0000 (14:52 +0800)
committerRob Herring <robh@kernel.org>
Thu, 23 Jun 2016 19:59:16 +0000 (14:59 -0500)
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 <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Rob Herring <robh@kernel.org>
arch/arm64/kernel/setup.c

index 8412520ef62d1027db4948a91cb90742d41725de..c907e2f8b516f4d2149fe039bf16f49f7423ea13 100644 (file)
@@ -40,7 +40,6 @@
 #include <linux/proc_fs.h>
 #include <linux/memblock.h>
 #include <linux/of_fdt.h>
-#include <linux/of_platform.h>
 #include <linux/efi.h>
 #include <linux/psci.h>
 
@@ -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;