summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-03-27 07:57:35 -0700
committerIan Romanick <idr@us.ibm.com>2007-03-27 08:02:01 -0700
commitc6e72deddb3055167fff8007bf039be61e45849e (patch)
tree8ef5c0bf55033caecd491d172d7a8163e1728ec3
parent28dc34c2a6045ab95183d708500009bd1eea1659 (diff)
Don't pci_device_probe until absolutely necessary.
-rw-r--r--src/scanpci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scanpci.c b/src/scanpci.c
index 66eb89b..a3ec5c5 100644
--- a/src/scanpci.c
+++ b/src/scanpci.c
@@ -124,6 +124,7 @@ print_pci_device( struct pci_device * dev, int verbose )
latency_timer,
cache_line_size );
+ pci_device_probe( dev );
for ( i = 0 ; i < 6 ; i++ ) {
if ( dev->regions[i].base_addr != 0 ) {
printf( " BASE%u 0x%08x addr 0x%08x %s",
@@ -181,7 +182,6 @@ int main( int argc, char ** argv )
iter = pci_slot_match_iterator_create( NULL );
while ( (dev = pci_device_next( iter )) != NULL ) {
- pci_device_probe( dev );
print_pci_device( dev, 1 );
}