aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/iov.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/iov.c b/drivers/pci/iov.c
index b497daab3d4..e87fe95da81 100644
--- a/drivers/pci/iov.c
+++ b/drivers/pci/iov.c
@@ -487,6 +487,8 @@ found:
487 iov->self = dev; 487 iov->self = dev;
488 pci_read_config_dword(dev, pos + PCI_SRIOV_CAP, &iov->cap); 488 pci_read_config_dword(dev, pos + PCI_SRIOV_CAP, &iov->cap);
489 pci_read_config_byte(dev, pos + PCI_SRIOV_FUNC_LINK, &iov->link); 489 pci_read_config_byte(dev, pos + PCI_SRIOV_FUNC_LINK, &iov->link);
490 if (dev->pcie_type == PCI_EXP_TYPE_RC_END)
491 iov->link = PCI_DEVFN(PCI_SLOT(dev->devfn), iov->link);
490 492
491 if (pdev) 493 if (pdev)
492 iov->dev = pci_dev_get(pdev); 494 iov->dev = pci_dev_get(pdev);