/* Used by a driver to check whether a  */
static int pci_bus_match(struct device *dev, struct device_driver *drv)
/* Used by a driver to check whether a  */
static int pci_bus_match(struct device *dev, struct device_driver *drv)
{
	struct pci_dev *pci_dev = to_pci_dev(dev);
	struct pci_driver *pci_drv = to_pci_driver(drv);
	const struct pci_device_id *found_id;
	found_id = pci_match_device(pci_drv, pci_dev);
	if (found_id)
		return 1;
	return 0;
}