Skip to content

Commit

Permalink
PCI: sgihp: register busn_res
Browse files Browse the repository at this point in the history
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
  • Loading branch information
Yinghai Lu authored and Bjorn Helgaas committed Jun 13, 2012
1 parent d0a350f commit 85019fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/pci/hotplug/sgi_hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,11 +398,13 @@ static int enable_slot(struct hotplug_slot *bss_hotplug_slot)
sn_io_slot_fixup(dev);
if (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) {
unsigned char sec_bus;
int max;
pci_read_config_byte(dev, PCI_SECONDARY_BUS,
&sec_bus);
new_bus = pci_add_new_bus(dev->bus, dev,
sec_bus);
pci_scan_child_bus(new_bus);
max = pci_scan_child_bus(new_bus);
pci_bus_update_busn_res_end(new_bus, max);
new_ppb = 1;
}
pci_dev_put(dev);
Expand Down

0 comments on commit 85019fa

Please sign in to comment.