Commit cd04d58e authored by Tiezhu Yang's avatar Tiezhu Yang Committed by Thomas Bogendoerfer
Browse files

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: default avatarTiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent 89fa1268
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -269,8 +269,3 @@ void __init arch_init_irq(void)
{
	irqchip_init();
}

void __init device_tree_init(void)
{
	unflatten_and_copy_device_tree();
}
+5 −0
Original line number Diff line number Diff line
@@ -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
+0 −5
Original line number Diff line number Diff line
@@ -84,11 +84,6 @@ void __init plat_mem_setup(void)
	__dt_setup_arch(dtb);
}

void __init device_tree_init(void)
{
	unflatten_and_copy_device_tree();
}

void __init prom_init(void)
{
	/* call the soc specific detetcion code and get it to fill soc_info */
+0 −5
Original line number Diff line number Diff line
@@ -36,8 +36,3 @@ void __init plat_mem_setup(void)
	if (loongson_fdt_blob)
		__dt_setup_arch(loongson_fdt_blob);
}

void __init device_tree_init(void)
{
	unflatten_and_copy_device_tree();
}
+0 −1
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@
# Copyright (C) 2008 Wind River Systems, Inc.
#   written by Ralf Baechle <ralf@linux-mips.org>
#
obj-y				+= malta-dt.o
obj-y				+= malta-dtshim.o
obj-y				+= malta-init.o
obj-y				+= malta-int.o
Loading