From ddd0ce87bfdebbc92c639286a2bf1241f335e6c8 Mon Sep 17 00:00:00 2001 From: Kefeng Wang Date: Wed, 1 Jun 2016 14:53:01 +0800 Subject: mips: 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: Ralf Baechle Cc: Alban Bedel Cc: Paul Burton Cc: James Hogan Cc: Joshua Henderson Cc: Zubair Lutfullah Kakakhel Signed-off-by: Kefeng Wang Signed-off-by: Rob Herring --- arch/mips/pistachio/init.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'arch/mips/pistachio') diff --git a/arch/mips/pistachio/init.c b/arch/mips/pistachio/init.c index ab79828230ab..c50a670e60d2 100644 --- a/arch/mips/pistachio/init.c +++ b/arch/mips/pistachio/init.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include @@ -159,15 +158,3 @@ void __init device_tree_init(void) unflatten_and_copy_device_tree(); } - -static int __init plat_of_setup(void) -{ - if (!of_have_populated_dt()) - panic("Device tree not present"); - - if (of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL)) - panic("Failed to populate DT"); - - return 0; -} -arch_initcall(plat_of_setup); -- cgit v1.2.3