mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
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>
This commit is contained in:
committed by
Thomas Bogendoerfer
parent
89fa126893
commit
cd04d58e82
@@ -269,8 +269,3 @@ void __init arch_init_irq(void)
|
|||||||
{
|
{
|
||||||
irqchip_init();
|
irqchip_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
void __init device_tree_init(void)
|
|
||||||
{
|
|
||||||
unflatten_and_copy_device_tree();
|
|
||||||
}
|
|
||||||
|
@@ -64,4 +64,9 @@ int __init __dt_register_buses(const char *bus0, const char *bus1)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void __weak __init device_tree_init(void)
|
||||||
|
{
|
||||||
|
unflatten_and_copy_device_tree();
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -84,11 +84,6 @@ void __init plat_mem_setup(void)
|
|||||||
__dt_setup_arch(dtb);
|
__dt_setup_arch(dtb);
|
||||||
}
|
}
|
||||||
|
|
||||||
void __init device_tree_init(void)
|
|
||||||
{
|
|
||||||
unflatten_and_copy_device_tree();
|
|
||||||
}
|
|
||||||
|
|
||||||
void __init prom_init(void)
|
void __init prom_init(void)
|
||||||
{
|
{
|
||||||
/* call the soc specific detetcion code and get it to fill soc_info */
|
/* call the soc specific detetcion code and get it to fill soc_info */
|
||||||
|
@@ -36,8 +36,3 @@ void __init plat_mem_setup(void)
|
|||||||
if (loongson_fdt_blob)
|
if (loongson_fdt_blob)
|
||||||
__dt_setup_arch(loongson_fdt_blob);
|
__dt_setup_arch(loongson_fdt_blob);
|
||||||
}
|
}
|
||||||
|
|
||||||
void __init device_tree_init(void)
|
|
||||||
{
|
|
||||||
unflatten_and_copy_device_tree();
|
|
||||||
}
|
|
||||||
|
@@ -6,7 +6,6 @@
|
|||||||
# Copyright (C) 2008 Wind River Systems, Inc.
|
# Copyright (C) 2008 Wind River Systems, Inc.
|
||||||
# written by Ralf Baechle <ralf@linux-mips.org>
|
# written by Ralf Baechle <ralf@linux-mips.org>
|
||||||
#
|
#
|
||||||
obj-y += malta-dt.o
|
|
||||||
obj-y += malta-dtshim.o
|
obj-y += malta-dtshim.o
|
||||||
obj-y += malta-init.o
|
obj-y += malta-init.o
|
||||||
obj-y += malta-int.o
|
obj-y += malta-int.o
|
||||||
|
@@ -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();
|
|
||||||
}
|
|
@@ -78,11 +78,6 @@ void __init prom_init(void)
|
|||||||
pic32_init_cmdline((int)fw_arg0, (char **)fw_arg1);
|
pic32_init_cmdline((int)fw_arg0, (char **)fw_arg1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void __init device_tree_init(void)
|
|
||||||
{
|
|
||||||
unflatten_and_copy_device_tree();
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct pic32_sdhci_platform_data sdhci_data = {
|
static struct pic32_sdhci_platform_data sdhci_data = {
|
||||||
.setup_dma = pic32_set_sdhci_adma_fifo_threshold,
|
.setup_dma = pic32_set_sdhci_adma_fifo_threshold,
|
||||||
};
|
};
|
||||||
|
@@ -48,11 +48,6 @@ __iomem void *plat_of_remap_node(const char *node)
|
|||||||
return ioremap(res.start, resource_size(&res));
|
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 __init plat_mem_setup(void)
|
||||||
{
|
{
|
||||||
void *dtb;
|
void *dtb;
|
||||||
|
Reference in New Issue
Block a user