]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/pci/iov.c
PCI: Support SR-IOV on any function type
[karo-tx-linux.git] / drivers / pci / iov.c
index 31f31d460fc9de789d28d72365122224fa3b2551..fe4bd0aa91a622eb5ac185ef664d1ee9db698e41 100644 (file)
@@ -387,10 +387,6 @@ static int sriov_init(struct pci_dev *dev, int pos)
        struct resource *res;
        struct pci_dev *pdev;
 
-       if (pci_pcie_type(dev) != PCI_EXP_TYPE_RC_END &&
-           pci_pcie_type(dev) != PCI_EXP_TYPE_ENDPOINT)
-               return -ENODEV;
-
        pci_read_config_word(dev, pos + PCI_SRIOV_CTRL, &ctrl);
        if (ctrl & PCI_SRIOV_CTRL_VFE) {
                pci_write_config_word(dev, pos + PCI_SRIOV_CTRL, 0);