Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Kefeng Wang and committed by
Rob Herring
17033917 db41252c

+1 -4
+1 -4
arch/metag/kernel/setup.c
··· 20 20 #include <linux/memblock.h> 21 21 #include <linux/mm.h> 22 22 #include <linux/of_fdt.h> 23 - #include <linux/of_platform.h> 24 23 #include <linux/pfn.h> 25 24 #include <linux/root_dev.h> 26 25 #include <linux/sched.h> ··· 413 414 /* customizes platform devices, or adds new ones */ 414 415 if (machine_desc->init_machine) 415 416 machine_desc->init_machine(); 416 - else 417 - of_platform_populate(NULL, of_default_bus_match_table, NULL, 418 - NULL); 417 + 419 418 return 0; 420 419 } 421 420 arch_initcall(customize_machine);