Skip to content

Commit 6a7ec6c

Browse files
robherringpaulburton
authored andcommitted
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 <paul.burton@mips.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: James Hogan <jhogan@kernel.org> Cc: linux-mips@linux-mips.org Signed-off-by: Rob Herring <robh@kernel.org> Patchwork: https://patchwork.linux-mips.org/patch/19591/ Signed-off-by: Paul Burton <paul.burton@mips.com> Cc: linux-kernel@vger.kernel.org
1 parent 0279455 commit 6a7ec6c

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

arch/mips/generic/init.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include <linux/init.h>
1515
#include <linux/irqchip.h>
1616
#include <linux/of_fdt.h>
17-
#include <linux/of_platform.h>
1817

1918
#include <asm/bootinfo.h>
2019
#include <asm/fw/fw.h>
@@ -208,18 +207,6 @@ void __init arch_init_irq(void)
208207
irqchip_init();
209208
}
210209

211-
static int __init publish_devices(void)
212-
{
213-
if (!of_have_populated_dt())
214-
panic("Device-tree not present");
215-
216-
if (of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL))
217-
panic("Failed to populate DT");
218-
219-
return 0;
220-
}
221-
arch_initcall(publish_devices);
222-
223210
void __init prom_free_prom_memory(void)
224211
{
225212
}

0 commit comments

Comments
 (0)