/* Returns true if the finding pci_device_id structure matched or false if there is no match.  */
static bool pci_match_one_id(const struct pci_device_id *id, const struct pci_device_id *find)
/* Returns true if the finding pci_device_id structure matched or false if there is no match.  */
static bool pci_match_one_id(const struct pci_device_id *id, const struct pci_device_id *find)
{
	if ((id->vendor == PCI_ANY_ID || id->vendor == find->vendor) &&
	    (id->device == PCI_ANY_ID || id->device == find->device) &&
	    (id->subvendor == PCI_ANY_ID || id->subvendor == find->subvendor) &&
	    (id->subdevice == PCI_ANY_ID || id->subdevice == find->subdevice) &&
	    !((id->class ^ find->class) & id->class_mask))
		return true;
	return false;
}