aboutsummaryrefslogtreecommitdiffstats
path: root/arch/metag
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2016-06-01 02:53:00 -0400
committerRob Herring <robh@kernel.org>2016-06-23 16:00:26 -0400
commit17033917ce7b59fdc07f579693b083b39f08ff93 (patch)
tree0ea5903aa7d6ea7eae14f396f39c5f1dc9b1feaa /arch/metag
parentdb41252cf8b58c8a57226204e113b9dffaebf693 (diff)
metag: 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. Cc: James Hogan <james.hogan@imgtec.com> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'arch/metag')
-rw-r--r--arch/metag/kernel/setup.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/metag/kernel/setup.c b/arch/metag/kernel/setup.c
index 31cf53d0eba2..1166f1fbfd63 100644
--- a/arch/metag/kernel/setup.c
+++ b/arch/metag/kernel/setup.c
@@ -20,7 +20,6 @@
20#include <linux/memblock.h> 20#include <linux/memblock.h>
21#include <linux/mm.h> 21#include <linux/mm.h>
22#include <linux/of_fdt.h> 22#include <linux/of_fdt.h>
23#include <linux/of_platform.h>
24#include <linux/pfn.h> 23#include <linux/pfn.h>
25#include <linux/root_dev.h> 24#include <linux/root_dev.h>
26#include <linux/sched.h> 25#include <linux/sched.h>
@@ -414,9 +413,7 @@ static int __init customize_machine(void)
414 /* customizes platform devices, or adds new ones */ 413 /* customizes platform devices, or adds new ones */
415 if (machine_desc->init_machine) 414 if (machine_desc->init_machine)
416 machine_desc->init_machine(); 415 machine_desc->init_machine();
417 else 416
418 of_platform_populate(NULL, of_default_bus_match_table, NULL,
419 NULL);
420 return 0; 417 return 0;
421} 418}
422arch_initcall(customize_machine); 419arch_initcall(customize_machine);