/* Returns 0 on success, or negative on failure.  */
int pci_iov_init(struct pci_dev *dev)
/* Returns 0 on success, or negative on failure.  */
int pci_iov_init(struct pci_dev *dev)
{
	int pos;
	if (!pci_is_pcie(dev))
		return -ENODEV;
	pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_SRIOV);
	if (pos)
		return sriov_init(dev, pos);
	return -ENODEV;
}