diff options
author | Matthias Hopf <mhopf@suse.de> | 2009-05-04 16:08:39 +0200 |
---|---|---|
committer | Matthias Hopf <mhopf@suse.de> | 2009-05-04 16:08:39 +0200 |
commit | cefd136eb01d23bc7afdc860bfc08cb5c0b1b7cb (patch) | |
tree | 3638fe34d8abc4e528a2f2f7902312efacd33e88 /utils | |
parent | 357f190d059e7e53f2b956cb5eba33a12899a7bd (diff) |
rhd_dump: move pci_device_enable to correct case (pciaccess)
Diffstat (limited to 'utils')
-rw-r--r-- | utils/conntest/rhd_dump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/conntest/rhd_dump.c b/utils/conntest/rhd_dump.c index ceb6ed4..6060bd3 100644 --- a/utils/conntest/rhd_dump.c +++ b/utils/conntest/rhd_dump.c @@ -539,6 +539,8 @@ main(int argc, char *argv[]) bus, dev, func); return 1; } + if (enable_device) + pci_device_enable(device); #else /* find our toy using pci */ device = DeviceLocate(pciAccess->devices, bus, dev, func); @@ -547,8 +549,6 @@ main(int argc, char *argv[]) bus, dev, func); return 1; } - if (enable_device) - pci_device_enable(device); #endif rhdDevice = DeviceMatch(device); |