Commit 69ba29b9 authored by Yinghai Lu's avatar Yinghai Lu Committed by Bjorn Helgaas

PCI: sgihp: use generic pci_hp_add_bridge()

Use the new generic pci_hp_add_bridge() interface.

[bhelgaas: changelog]
Signed-off-by: default avatarYinghai Lu <yinghai@kernel.org>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 2d7abf32
...@@ -397,16 +397,12 @@ static int enable_slot(struct hotplug_slot *bss_hotplug_slot) ...@@ -397,16 +397,12 @@ static int enable_slot(struct hotplug_slot *bss_hotplug_slot)
else else
sn_io_slot_fixup(dev); sn_io_slot_fixup(dev);
if (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) { if (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) {
unsigned char sec_bus; pci_hp_add_bridge(dev);
int max; if (dev->subordinate) {
pci_read_config_byte(dev, PCI_SECONDARY_BUS, new_bus = dev->subordinate;
&sec_bus);
new_bus = pci_add_new_bus(dev->bus, dev,
sec_bus);
max = pci_scan_child_bus(new_bus);
pci_bus_update_busn_res_end(new_bus, max);
new_ppb = 1; new_ppb = 1;
} }
}
pci_dev_put(dev); pci_dev_put(dev);
} }
} }
......
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