mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 13:30:57 +03:00
[pci] Replace pci_max_bus() with pci_num_bus()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -234,7 +234,7 @@ static int pcibus_probe ( struct root_device *rootdev ) {
|
||||
uint32_t tmp;
|
||||
int rc;
|
||||
|
||||
num_bus = ( pci_max_bus() + 1 );
|
||||
num_bus = pci_num_bus();
|
||||
for ( busdevfn = 0 ; busdevfn < PCI_BUSDEVFN ( num_bus, 0, 0 ) ;
|
||||
busdevfn++ ) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user