summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/pci.c7
-rw-r--r--sys/dev/pci/pcivar.h1
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index ab051a6..e6c060d 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -1205,10 +1205,9 @@ pci_probe_nomatch(device_t dev, device_t child)
dinfo = device_get_ivars(child);
cfg = &dinfo->cfg;
desc = pci_ata_match(child);
- if (!desc)
- desc = pci_usb_match(child);
- if (!desc)
- desc = "unknown card";
+ if (!desc) desc = pci_usb_match(child);
+ if (!desc) desc = pci_vga_match(child);
+ if (!desc) desc = "unknown card";
device_printf(dev, desc);
printf(" (vendor=0x%04x, dev=0x%04x) at %d.%d",
cfg->vendor,
diff --git a/sys/dev/pci/pcivar.h b/sys/dev/pci/pcivar.h
index d066860..9c345c0 100644
--- a/sys/dev/pci/pcivar.h
+++ b/sys/dev/pci/pcivar.h
@@ -152,6 +152,7 @@ extern u_int32_t pci_numdevs;
const char *pci_ata_match(struct device *dev);
const char *pci_usb_match(struct device *dev);
+const char *pci_vga_match(struct device *dev);
/* low level PCI config register functions provided by pcibus.c */
OpenPOWER on IntegriCloud