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:
parent
5ff6541e7a
commit
1ed9e51a4d
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user