Commit a38c4751 authored by Yoichi Yuasa's avatar Yoichi Yuasa Committed by Ralf Baechle

[MIPS] separate rbtx4927_arch_init() and rbtx4937_arch_init()

Signed-off-by: default avatarYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Acked-by: default avatarAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent a00fb669
...@@ -170,13 +170,16 @@ static void __init tx4937_pci_setup(void) ...@@ -170,13 +170,16 @@ static void __init tx4937_pci_setup(void)
static void __init rbtx4927_arch_init(void) static void __init rbtx4927_arch_init(void)
{ {
if (mips_machtype == MACH_TOSHIBA_RBTX4937) tx4927_pci_setup();
tx4937_pci_setup(); }
else
tx4927_pci_setup(); static void __init rbtx4937_arch_init(void)
{
tx4937_pci_setup();
} }
#else #else
#define rbtx4927_arch_init NULL #define rbtx4927_arch_init NULL
#define rbtx4937_arch_init NULL
#endif /* CONFIG_PCI */ #endif /* CONFIG_PCI */
static void __noreturn wait_forever(void) static void __noreturn wait_forever(void)
...@@ -433,7 +436,7 @@ struct txx9_board_vec rbtx4937_vec __initdata = { ...@@ -433,7 +436,7 @@ struct txx9_board_vec rbtx4937_vec __initdata = {
.irq_setup = rbtx4927_irq_setup, .irq_setup = rbtx4927_irq_setup,
.time_init = rbtx4927_time_init, .time_init = rbtx4927_time_init,
.device_init = rbtx4927_device_init, .device_init = rbtx4927_device_init,
.arch_init = rbtx4927_arch_init, .arch_init = rbtx4937_arch_init,
#ifdef CONFIG_PCI #ifdef CONFIG_PCI
.pci_map_irq = rbtx4927_pci_map_irq, .pci_map_irq = rbtx4927_pci_map_irq,
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment