summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-10-07 13:39:10 -0400
committerAdam Jackson <ajax@redhat.com>2008-10-07 13:41:53 -0400
commita57b2f172c1291f22f7ba2780c1b2f55e353c3e9 (patch)
tree7ac81f300744ae7fca125564c468ce8204f2bdd1
parenta65e36a873cd1ba9896cd0f9a3e94dd933666005 (diff)
int10: Don't warn when scanning for devices we don't have.
Some BIOSes (hi XGI!) will attempt to enumerate the PCI bus by asking for the config space of every possible device number. This despite perfectly functional BIOS methods to enumerate the bus exactly.
-rw-r--r--hw/xfree86/int10/helper_exec.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/hw/xfree86/int10/helper_exec.c b/hw/xfree86/int10/helper_exec.c
index ff8143f27..4e5f6d3fd 100644
--- a/hw/xfree86/int10/helper_exec.c
+++ b/hw/xfree86/int10/helper_exec.c
@@ -478,15 +478,9 @@ pci_device_for_cfg_address (CARD32 addr)
struct pci_device_iterator *iter =
pci_slot_match_iterator_create (&slot_match);
+
if (iter)
dev = pci_device_next(iter);
- if (!dev) {
- char buf[128]; /* enough to store "%u@%u" */
- xf86FormatPciBusNumber(tag >> 16, buf);
- ErrorF("Failed to find device matching %s:%u:%u\n",
- buf, slot_match.dev, slot_match.func);
- return NULL;
- }
return dev;
}