Merge git://www.linux-watchdog.org/linux-watchdog
[deliverable/linux.git] / drivers / pci / iov.c
index fa4f13869fa98da78b0ea2a4398f894519f71b28..2194b447201d412127e0d2111856c868561a983c 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);
This page took 0.024147 seconds and 5 git commands to generate.