From cd04d58e829dd074b0af1c1556c5130227f9f23a Mon Sep 17 00:00:00 2001 From: Tiezhu Yang Date: Thu, 10 Mar 2022 14:50:11 +0800 Subject: MIPS: Remove redundant definitions of device_tree_init() There exists many same definitions of device_tree_init() for various platforms, add a weak function in arch/mips/kernel/prom.c to clean up the related code. Signed-off-by: Tiezhu Yang Signed-off-by: Thomas Bogendoerfer --- arch/mips/ralink/of.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'arch/mips/ralink') diff --git a/arch/mips/ralink/of.c b/arch/mips/ralink/of.c index 35a87a2da10b..587c7b998769 100644 --- a/arch/mips/ralink/of.c +++ b/arch/mips/ralink/of.c @@ -48,11 +48,6 @@ __iomem void *plat_of_remap_node(const char *node) return ioremap(res.start, resource_size(&res)); } -void __init device_tree_init(void) -{ - unflatten_and_copy_device_tree(); -} - void __init plat_mem_setup(void) { void *dtb; -- cgit