aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/include/asm/pci.h2
-rw-r--r--arch/x86/pci/common.c6
-rw-r--r--arch/x86/pci/irq.c4
3 files changed, 4 insertions, 8 deletions
diff --git a/arch/x86/include/asm/pci.h b/arch/x86/include/asm/pci.h
index b52f9c0ec5fb..96ae4f4040bb 100644
--- a/arch/x86/include/asm/pci.h
+++ b/arch/x86/include/asm/pci.h
@@ -65,7 +65,7 @@ extern unsigned long pci_mem_start;
65 65
66extern int pcibios_enabled; 66extern int pcibios_enabled;
67void pcibios_config_init(void); 67void pcibios_config_init(void);
68struct pci_bus *pcibios_scan_root(int bus); 68void pcibios_scan_root(int bus);
69 69
70void pcibios_set_master(struct pci_dev *dev); 70void pcibios_set_master(struct pci_dev *dev);
71void pcibios_penalize_isa_irq(int irq, int active); 71void pcibios_penalize_isa_irq(int irq, int active);
diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c
index 52ad00c2e198..600e5925f1a4 100644
--- a/arch/x86/pci/common.c
+++ b/arch/x86/pci/common.c
@@ -456,7 +456,7 @@ void __init dmi_check_pciprobe(void)
456 dmi_check_system(pciprobe_dmi_table); 456 dmi_check_system(pciprobe_dmi_table);
457} 457}
458 458
459struct pci_bus *pcibios_scan_root(int busnum) 459void pcibios_scan_root(int busnum)
460{ 460{
461 struct pci_bus *bus; 461 struct pci_bus *bus;
462 struct pci_sysdata *sd; 462 struct pci_sysdata *sd;
@@ -465,7 +465,7 @@ struct pci_bus *pcibios_scan_root(int busnum)
465 sd = kzalloc(sizeof(*sd), GFP_KERNEL); 465 sd = kzalloc(sizeof(*sd), GFP_KERNEL);
466 if (!sd) { 466 if (!sd) {
467 printk(KERN_ERR "PCI: OOM, skipping PCI bus %02x\n", busnum); 467 printk(KERN_ERR "PCI: OOM, skipping PCI bus %02x\n", busnum);
468 return NULL; 468 return;
469 } 469 }
470 sd->node = get_mp_bus_to_node(busnum); 470 sd->node = get_mp_bus_to_node(busnum);
471 x86_pci_root_bus_resources(busnum, &resources); 471 x86_pci_root_bus_resources(busnum, &resources);
@@ -475,8 +475,6 @@ struct pci_bus *pcibios_scan_root(int busnum)
475 pci_free_resource_list(&resources); 475 pci_free_resource_list(&resources);
476 kfree(sd); 476 kfree(sd);
477 } 477 }
478
479 return bus;
480} 478}
481 479
482void __init pcibios_set_cache_line_size(void) 480void __init pcibios_set_cache_line_size(void)
diff --git a/arch/x86/pci/irq.c b/arch/x86/pci/irq.c
index 8658874165c2..84112f55dd7a 100644
--- a/arch/x86/pci/irq.c
+++ b/arch/x86/pci/irq.c
@@ -138,9 +138,7 @@ static void __init pirq_peer_trick(void)
138 for (i = 1; i < 256; i++) { 138 for (i = 1; i < 256; i++) {
139 if (!busmap[i] || pci_find_bus(0, i)) 139 if (!busmap[i] || pci_find_bus(0, i))
140 continue; 140 continue;
141 if (pcibios_scan_root(i)) 141 pcibios_scan_root(i);
142 printk(KERN_INFO "PCI: Discovered primary peer "
143 "bus %02x [IRQ]\n", i);
144 } 142 }
145 pcibios_last_bus = -1; 143 pcibios_last_bus = -1;
146} 144}