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.
This commit is contained in:
Bill Paul 1999-09-17 00:47:41 +00:00
parent 5ff6541e7a
commit 1ed9e51a4d
2 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -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,