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/kernel/prom.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'arch/mips/kernel/prom.c') diff --git a/arch/mips/kernel/prom.c b/arch/mips/kernel/prom.c index 6abebd57b218..7db6ff9aed7d 100644 --- a/arch/mips/kernel/prom.c +++ b/arch/mips/kernel/prom.c @@ -64,4 +64,9 @@ int __init __dt_register_buses(const char *bus0, const char *bus1) return 0; } +void __weak __init device_tree_init(void) +{ + unflatten_and_copy_device_tree(); +} + #endif -- cgit v1.2.3