diff options
author | Eric Anholt <eric@anholt.net> | 2007-03-16 19:41:54 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2007-03-16 19:41:54 -0700 |
commit | 9d6d9ace4bd3180a4484321c3b96a83bc4adaf84 (patch) | |
tree | 3985aecab7fcf383463993a52ab865d87da8556c /src/reg_dumper | |
parent | a117bc9e3eb824f2056ee6416859ea3ab1fdcc30 (diff) |
Move vendor ID check in the utils to after pci_device_probe.
Even current libpciaccess seems to require this.
Diffstat (limited to 'src/reg_dumper')
-rw-r--r-- | src/reg_dumper/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/reg_dumper/main.c b/src/reg_dumper/main.c index 50c79236..b3c50dee 100644 --- a/src/reg_dumper/main.c +++ b/src/reg_dumper/main.c @@ -52,15 +52,15 @@ int main(int argc, char **argv) if (dev == NULL) errx(1, "Couldn't find graphics card"); - if (dev->vendor_id != 0x8086) - errx(1, "Graphics card is non-intel"); - err = pci_device_probe(dev); if (err != 0) { fprintf(stderr, "Couldn't probe graphics card: %s\n", strerror(err)); exit(1); } + if (dev->vendor_id != 0x8086) + errx(1, "Graphics card is non-intel"); + i830.PciInfo = &i830.pci_info_rec; i830.PciInfo->chipType = dev->device_id; |