projects
/
platform
/
upstream
/
libpciaccess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28dc34c
)
Don't pci_device_probe until absolutely necessary.
author
Ian Romanick
<idr@us.ibm.com>
Tue, 27 Mar 2007 14:57:35 +0000
(07:57 -0700)
committer
Ian Romanick
<idr@us.ibm.com>
Tue, 27 Mar 2007 15:02:01 +0000
(08:02 -0700)
src/scanpci.c
patch
|
blob
|
history
diff --git
a/src/scanpci.c
b/src/scanpci.c
index
66eb89b
..
a3ec5c5
100644
(file)
--- 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 );
}