summaryrefslogtreecommitdiffstats
path: root/arch/mips/mti-malta/malta-dt.c
diff options
context:
space:
mode:
authorTiezhu Yang <yangtiezhu@loongson.cn>2022-03-10 07:50:11 +0100
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2022-03-14 15:09:02 +0100
commitcd04d58e829dd074b0af1c1556c5130227f9f23a (patch)
tree7ac2e451502985f4dca5eb252e2f087ea5852b96 /arch/mips/mti-malta/malta-dt.c
parentMIPS: Remove redundant check in device_tree_init() (diff)
downloadlinux-cd04d58e829dd074b0af1c1556c5130227f9f23a.tar.xz
linux-cd04d58e829dd074b0af1c1556c5130227f9f23a.zip
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/mti-malta/malta-dt.c')
-rw-r--r--arch/mips/mti-malta/malta-dt.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/arch/mips/mti-malta/malta-dt.c b/arch/mips/mti-malta/malta-dt.c
deleted file mode 100644
index d045c9149418..000000000000
--- a/arch/mips/mti-malta/malta-dt.c
+++ /dev/null
@@ -1,15 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0-or-later
-/*
- * Copyright (C) 2015 Imagination Technologies
- * Author: Paul Burton <paul.burton@mips.com>
- */
-
-#include <linux/clk-provider.h>
-#include <linux/init.h>
-#include <linux/of_fdt.h>
-#include <linux/of_platform.h>
-
-void __init device_tree_init(void)
-{
- unflatten_and_copy_device_tree();
-}