Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45087875 authored by Yinghai Lu's avatar Yinghai Lu Committed by Bjorn Helgaas
Browse files

PCI: cpqhp: register busn_res

parent 6cda0fcf
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);