From 6a7ec6c5ca0c8264bd505be122ca2d4ede60de92 Mon Sep 17 00:00:00 2001 From: Rob Herring Date: Tue, 19 Jun 2018 15:47:09 -0600 Subject: MIPS: generic: remove unnecessary of_platform_populate call The DT core will call of_platform_populate, so it is not necessary for arch specific code to call it unless there are custom match entries, auxdata or parent device. Neither of those apply here, so remove the call. Cc: Paul Burton Cc: Ralf Baechle Cc: James Hogan Cc: linux-mips@linux-mips.org Signed-off-by: Rob Herring Patchwork: https://patchwork.linux-mips.org/patch/19591/ Signed-off-by: Paul Burton Cc: linux-kernel@vger.kernel.org --- arch/mips/generic/init.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'arch/mips/generic') diff --git a/arch/mips/generic/init.c b/arch/mips/generic/init.c index 5ba6fcc26fa7..07ec08462d70 100644 --- a/arch/mips/generic/init.c +++ b/arch/mips/generic/init.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include @@ -208,18 +207,6 @@ void __init arch_init_irq(void) irqchip_init(); } -static int __init publish_devices(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(publish_devices); - void __init prom_free_prom_memory(void) { } -- cgit v1.2.1