mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-16 22:10:24 +00:00
PCI: cpqhp: register busn_res
Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
This commit is contained in:
parent
6cda0fcf26
commit
450878759a
@ -106,9 +106,11 @@ int cpqhp_configure_device (struct controller* ctrl, struct pci_func* func)
|
||||
}
|
||||
|
||||
if (func->pci_dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) {
|
||||
int max;
|
||||
pci_read_config_byte(func->pci_dev, PCI_SECONDARY_BUS, &bus);
|
||||
child = (struct pci_bus*) pci_add_new_bus(func->pci_dev->bus, (func->pci_dev), bus);
|
||||
pci_do_scan_bus(child);
|
||||
max = pci_do_scan_bus(child);
|
||||
pci_bus_update_busn_res_end(child, max);
|
||||
}
|
||||
|
||||
pci_dev_put(func->pci_dev);
|
||||
|
Loading…
Reference in New Issue
Block a user