aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/iov.c
diff options
context:
space:
mode:
authorEthan Zhao <ethan.zhao@oracle.com>2014-09-08 22:21:28 -0400
committerBjorn Helgaas <bhelgaas@google.com>2014-09-16 18:19:58 -0400
commitbe63497c413e22d5abdf32313f4b469af6aa7f4c (patch)
treeba8ba44e6d9cbbee3b6755e5c150309897f034ad /drivers/pci/iov.c
parentbe507fd09011d2af3b34940fe616a2dd569fd3f7 (diff)
PCI: Use device flag helper functions
Use PCI device flag helper functions when checking whether a device is assigned. No functional change. Signed-off-by: Ethan Zhao <ethan.zhao@oracle.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/iov.c')
-rw-r--r--drivers/pci/iov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/iov.c b/drivers/pci/iov.c
index cb6f24740ee3..4d109c07294a 100644
--- a/drivers/pci/iov.c
+++ b/drivers/pci/iov.c
@@ -633,7 +633,7 @@ int pci_vfs_assigned(struct pci_dev *dev)
633 * our dev as the physical function and the assigned bit is set 633 * our dev as the physical function and the assigned bit is set
634 */ 634 */
635 if (vfdev->is_virtfn && (vfdev->physfn == dev) && 635 if (vfdev->is_virtfn && (vfdev->physfn == dev) &&
636 (vfdev->dev_flags & PCI_DEV_FLAGS_ASSIGNED)) 636 pci_is_dev_assigned(vfdev))
637 vfs_assigned++; 637 vfs_assigned++;
638 638
639 vfdev = pci_get_device(dev->vendor, dev_id, vfdev); 639 vfdev = pci_get_device(dev->vendor, dev_id, vfdev);