Changeset 635
- Timestamp:
- Jan 5, 2021, 5:34:23 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/lib32/pci.c
r629 r635 483 483 struct pci_dev *pcidev; 484 484 struct pci_device_id IdTable; 485 USHORT usVendor, usDevice; 485 486 int iAdapter = 0; 486 487 … … 508 509 ulLast, pcidev->vendor, pcidev->device, pcidev->class, driver->name)); 509 510 511 usVendor = 0; 512 usDevice = 0; 513 510 514 for( iTableIx = 0; driver->id_table[iTableIx].vendor; iTableIx++) 511 515 { … … 516 520 if ( (pDriverId->device != PCI_ANY_ID) && (pDriverId->device != pcidev->device) ) continue; 517 521 522 /* skip a duplicate device that could be matched by both and exact match and a class match */ 523 if (usVendor == pcidev->vendor && usDevice == pcidev->device) continue; 524 usVendor = pcidev->vendor; 525 usDevice = pcidev->device; 526 518 527 rprintf(("pci_register_driver: matched %d %x:%x/%x with %x:%x/%x %x (%s)", iTableIx, 519 528 pcidev->vendor, pcidev->device, pcidev->class, … … 522 531 if ((iAdapterNumber >= 0) && (iAdapter < iAdapterNumber)) 523 532 { 533 rprintf(("iAdapterNumber=%x skipping iAdapter=%x", iAdapterNumber, iAdapter)); 524 534 iAdapter++; 525 535 continue;
Note:
See TracChangeset
for help on using the changeset viewer.