arc: Remove unnecessary of_platform_populate with default match table
authorKefeng Wang <wangkefeng.wang@huawei.com>
Wed, 1 Jun 2016 06:52:55 +0000 (14:52 +0800)
committerRob Herring <robh@kernel.org>
Thu, 23 Jun 2016 19:58:33 +0000 (14:58 -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: Vineet Gupta <vgupta@synopsys.com>
Cc: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Rob Herring <robh@kernel.org>
arch/arc/kernel/setup.c

index 2ee7a4d758a882a2b4e36cacd74adb280648fced..584c5f064ff3a992619bfded222021089389763a 100644 (file)
@@ -14,7 +14,6 @@
 #include <linux/module.h>
 #include <linux/cpu.h>
 #include <linux/of_fdt.h>
-#include <linux/of_platform.h>
 #include <linux/cache.h>
 #include <asm/sections.h>
 #include <asm/arcregs.h>
@@ -435,12 +434,6 @@ void __init setup_arch(char **cmdline_p)
 
 static int __init customize_machine(void)
 {
-       /*
-        * Traverses flattened DeviceTree - registering platform devices
-        * (if any) complete with their resources
-        */
-       of_platform_default_populate(NULL, NULL, NULL);
-
        if (machine_desc->init_machine)
                machine_desc->init_machine();