diff options
| author | Michael Brown | 2011-02-12 03:08:28 +0100 |
|---|---|---|
| committer | Michael Brown | 2011-02-17 02:25:11 +0100 |
| commit | abb5590b297076f071b72f347d8d3204163e097b (patch) | |
| tree | b526d735f41a850977edce756f8f7c1020d35ccd /src/drivers | |
| parent | [pci] Use single "busdevfn" field in struct pci_device (diff) | |
| download | ipxe-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')
| -rw-r--r-- | src/drivers/bus/pci.c | 2 |
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++ ) { |
