Commit daa6c247 authored by Oliver O'Halloran's avatar Oliver O'Halloran Committed by Michael Ellerman

powerpc/embedded6xx/linkstation: Move PHB discovery

Signed-off-by: default avatarOliver O'Halloran <oohall@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201103043523.916109-14-oohall@gmail.com
parent 08c47382
...@@ -63,15 +63,18 @@ static int __init linkstation_add_bridge(struct device_node *dev) ...@@ -63,15 +63,18 @@ static int __init linkstation_add_bridge(struct device_node *dev)
} }
static void __init linkstation_setup_arch(void) static void __init linkstation_setup_arch(void)
{
printk(KERN_INFO "BUFFALO Network Attached Storage Series\n");
printk(KERN_INFO "(C) 2002-2005 BUFFALO INC.\n");
}
static void __init linkstation_setup_pci(void)
{ {
struct device_node *np; struct device_node *np;
/* Lookup PCI host bridges */ /* Lookup PCI host bridges */
for_each_compatible_node(np, "pci", "mpc10x-pci") for_each_compatible_node(np, "pci", "mpc10x-pci")
linkstation_add_bridge(np); linkstation_add_bridge(np);
printk(KERN_INFO "BUFFALO Network Attached Storage Series\n");
printk(KERN_INFO "(C) 2002-2005 BUFFALO INC.\n");
} }
/* /*
...@@ -153,6 +156,7 @@ define_machine(linkstation){ ...@@ -153,6 +156,7 @@ define_machine(linkstation){
.name = "Buffalo Linkstation", .name = "Buffalo Linkstation",
.probe = linkstation_probe, .probe = linkstation_probe,
.setup_arch = linkstation_setup_arch, .setup_arch = linkstation_setup_arch,
.discover_phbs = linkstation_setup_pci,
.init_IRQ = linkstation_init_IRQ, .init_IRQ = linkstation_init_IRQ,
.show_cpuinfo = linkstation_show_cpuinfo, .show_cpuinfo = linkstation_show_cpuinfo,
.get_irq = mpic_get_irq, .get_irq = mpic_get_irq,
......
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