From cf91f8282c8537baf273d2a0b904d225e1c04f77 Mon Sep 17 00:00:00 2001 From: Bill Paul Date: Sat, 15 Jan 2000 18:04:28 +0000 Subject: Actually read the PCI device ID when testing the device ID value against the supported devices list. --- sys/dev/an/if_an_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev') diff --git a/sys/dev/an/if_an_pci.c b/sys/dev/an/if_an_pci.c index 104d4de3ff965..c114afb91ddaf 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); } -- cgit v1.3