[pci] Replace pci_max_bus() with pci_num_bus()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2011-02-12 02:08:28 +00:00
parent f9b3fae8d4
commit abb5590b29
7 changed files with 19 additions and 19 deletions

View File

@@ -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++ ) {