diff options
Diffstat (limited to 'sys/pci/if_sf.c')
-rw-r--r-- | sys/pci/if_sf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/if_sf.c b/sys/pci/if_sf.c index e6c0b98..35d6f29 100644 --- a/sys/pci/if_sf.c +++ b/sys/pci/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, |