/* umc_match_pci_id - match a UMC driver to a UMC device's parent PCI device. @umc_drv: umc driver with match_data pointing to a zero-terminated table of pci_device_id's. @umc: umc device whose parent is to be matched.  */
int umc_match_pci_id(struct umc_driver *umc_drv, struct umc_dev *umc)
/* umc_match_pci_id - match a UMC driver to a UMC device's parent PCI device. @umc_drv: umc driver with match_data pointing to a zero-terminated table of pci_device_id's. @umc: umc device whose parent is to be matched.  */
int umc_match_pci_id(struct umc_driver *umc_drv, struct umc_dev *umc)
{
	const struct pci_device_id *id_table = umc_drv->match_data;
	struct pci_dev *pci;
	if (umc->dev.parent->bus != &pci_bus_type)
		return 0;
	pci = to_pci_dev(umc->dev.parent);
	return pci_match_id(id_table, pci) != NULL;
}