summaryrefslogtreecommitdiffstats
path: root/src/drivers/bus
diff options
context:
space:
mode:
authorMichael Brown2011-02-12 03:08:28 +0100
committerMichael Brown2011-02-17 02:25:11 +0100
commitabb5590b297076f071b72f347d8d3204163e097b (patch)
treeb526d735f41a850977edce756f8f7c1020d35ccd /src/drivers/bus
parent[pci] Use single "busdevfn" field in struct pci_device (diff)
downloadipxe-abb5590b297076f071b72f347d8d3204163e097b.tar.gz
ipxe-abb5590b297076f071b72f347d8d3204163e097b.tar.xz
ipxe-abb5590b297076f071b72f347d8d3204163e097b.zip
[pci] Replace pci_max_bus() with pci_num_bus()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/bus')
-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++ ) {