summaryrefslogtreecommitdiffstats
path: root/sys/dev/an/if_an_pci.c
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2000-01-15 18:04:28 +0000
committerwpaul <wpaul@FreeBSD.org>2000-01-15 18:04:28 +0000
commit77d8b51d7950ff83576fa4d9d4231fab70297b6f (patch)
treea419b1252e7b63a1a9b82ed7fa544aedae716c57 /sys/dev/an/if_an_pci.c
parent3404ef44649eeaf54bc9e408913b4e72914dfb07 (diff)
downloadFreeBSD-src-77d8b51d7950ff83576fa4d9d4231fab70297b6f.zip
FreeBSD-src-77d8b51d7950ff83576fa4d9d4231fab70297b6f.tar.gz
Actually read the PCI device ID when testing the device ID value against
the supported devices list.
Diffstat (limited to 'sys/dev/an/if_an_pci.c')
-rw-r--r--sys/dev/an/if_an_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/an/if_an_pci.c b/sys/dev/an/if_an_pci.c
index 104d4de..c114afb 100644
--- a/sys/dev/an/if_an_pci.c
+++ b/sys/dev/an/if_an_pci.c
@@ -120,7 +120,7 @@ static int an_probe_pci(device_t dev)
while(t->an_name != NULL) {
if (pci_get_vendor(dev) == t->an_vid &&
- pci_get_vendor(dev) == t->an_did) {
+ pci_get_device(dev) == t->an_did) {
device_set_desc(dev, t->an_name);
return(0);
}
OpenPOWER on IntegriCloud