From 1b3a4f4e7bad96131429696e22bdfc2208eb9001 Mon Sep 17 00:00:00 2001 From: Scott Long Date: Thu, 14 Jul 2005 17:43:00 +0000 Subject: [PATCH] Check the vendor and device, not subvendor and subdevice, when looking for channel devices. This should fix Dell 2450/2550/2650 systems that have RAID enabled. This will likely not fix 2400 systems though as I don't have the appropriate PCI Id info for them. MFC After: 3 day --- sys/dev/aac/aac_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/aac/aac_pci.c b/sys/dev/aac/aac_pci.c index 15c4416a164..94d2e12cbce 100644 --- a/sys/dev/aac/aac_pci.c +++ b/sys/dev/aac/aac_pci.c @@ -356,8 +356,8 @@ static int aacch_probe(device_t dev) { - if ((pci_get_subvendor(dev) != 0x9005) || - (pci_get_subdevice(dev) != 0x00c5)) + if ((pci_get_vendor(dev) != 0x9005) || + (pci_get_device(dev) != 0x00c5)) return (ENXIO); device_set_desc(dev, "AAC RAID Channel");