summaryrefslogtreecommitdiffstats
path: root/drivers/pci/iov.c
diff options
context:
space:
mode:
authorEthan Zhao <ethan.zhao@oracle.com>2014-09-09 04:21:28 +0200
committerBjorn Helgaas <bhelgaas@google.com>2014-09-17 00:19:58 +0200
commitbe63497c413e22d5abdf32313f4b469af6aa7f4c (patch)
treeba8ba44e6d9cbbee3b6755e5c150309897f034ad /drivers/pci/iov.c
parentxen/pciback: Use PCI device flag helper functions (diff)
downloadlinux-be63497c413e22d5abdf32313f4b469af6aa7f4c.tar.xz
linux-be63497c413e22d5abdf32313f4b469af6aa7f4c.zip
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)
* our dev as the physical function and the assigned bit is set
*/
if (vfdev->is_virtfn && (vfdev->physfn == dev) &&
- (vfdev->dev_flags & PCI_DEV_FLAGS_ASSIGNED))
+ pci_is_dev_assigned(vfdev))
vfs_assigned++;
vfdev = pci_get_device(dev->vendor, dev_id, vfdev);