From 2600195b6aa16ae0dd89bbb61802b1058238e31e Mon Sep 17 00:00:00 2001 From: wpaul Date: Fri, 17 Sep 1999 00:47:41 +0000 Subject: Fix sf_probe() to detect the card type properly. I botched the reading of the subsystem ID when I converted to newbus. The driver still detects the chipset and still works but fails to identify the exact card. --- sys/dev/sf/if_sf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/sf') diff --git a/sys/dev/sf/if_sf.c b/sys/dev/sf/if_sf.c index e6c0b98..35d6f29 100644 --- a/sys/dev/sf/if_sf.c +++ b/sys/dev/sf/if_sf.c @@ -604,8 +604,8 @@ static int sf_probe(dev) while(t->sf_name != NULL) { if ((pci_get_vendor(dev) == t->sf_vid) && (pci_get_device(dev) == t->sf_did)) { - switch(pci_read_config(dev, - SF_PCI_SUBVEN_ID >> 16, 4) & 0x8FFF) { + switch((pci_read_config(dev, + SF_PCI_SUBVEN_ID, 4) >> 16) & 0xFFFF) { case AD_SUBSYSID_62011_REV0: case AD_SUBSYSID_62011_REV1: device_set_desc(dev, -- cgit v1.1