diff options
author | Tiezhu Yang <yangtiezhu@loongson.cn> | 2022-03-10 09:50:11 +0300 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2022-03-14 17:09:02 +0300 |
commit | cd04d58e829dd074b0af1c1556c5130227f9f23a (patch) | |
tree | 7ac2e451502985f4dca5eb252e2f087ea5852b96 /arch/mips/kernel | |
parent | 89fa1268932420c64155bb4de9a9252a8c9e475d (diff) | |
download | linux-cd04d58e829dd074b0af1c1556c5130227f9f23a.tar.xz |
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 <yangtiezhu@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r-- | arch/mips/kernel/prom.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 |