summaryrefslogtreecommitdiffstats
path: root/src/drivers/bus/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/bus/pci.c')
-rw-r--r--src/drivers/bus/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/bus/pci.c b/src/drivers/bus/pci.c
index e92f11b2f..a30fcc723 100644
--- a/src/drivers/bus/pci.c
+++ b/src/drivers/bus/pci.c
@@ -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++ ) {