diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2014-02-03 08:57:50 +0100 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2014-03-07 12:23:21 +0100 |
commit | 5a89dacae9f01c5ac0626cad3ff5b5e239d7b24e (patch) | |
tree | 414db1c3d86b01c267b1e823e27b37a7f3b882a6 | |
parent | 86122cf4a7f8716a7781273041fea0524b73678e (diff) |
LIBPCI: make pci_print print slot0 on bus0
-rw-r--r-- | cpukit/libpci/pci_print.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cpukit/libpci/pci_print.c b/cpukit/libpci/pci_print.c index 6eaf3b4fae..0a1349656b 100644 --- a/cpukit/libpci/pci_print.c +++ b/cpukit/libpci/pci_print.c @@ -169,11 +169,7 @@ void pci_print(void) printf("\nPCI devices found and configured:\n"); for (bus = 0; bus < pci_bus_count(); bus++) { - slot = 0; - if (bus == 0) - slot = 1; - for (; slot < PCI_MAX_DEVICES; slot++) { - + for (slot = 0; slot < PCI_MAX_DEVICES; slot++) { for (func=0; func < PCI_MAX_FUNCTIONS; func++) { dev = PCI_DEV(bus, slot, func); |