diff options
author | Ethan Zhao <ethan.zhao@oracle.com> | 2014-09-09 10:21:27 +0800 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-09-16 16:19:17 -0600 |
commit | be507fd09011d2af3b34940fe616a2dd569fd3f7 (patch) | |
tree | 78f5cb2f95b50873ee4f1bfff20a41ffb840a12c /drivers/xen/xen-pciback | |
parent | ad0d217ca645477ba30c2f3cf1a5bbb7ef18b1fd (diff) | |
download | linux-be507fd09011d2af3b34940fe616a2dd569fd3f7.tar.gz linux-be507fd09011d2af3b34940fe616a2dd569fd3f7.tar.bz2 linux-be507fd09011d2af3b34940fe616a2dd569fd3f7.zip |
xen/pciback: Use PCI device flag helper functions
Use PCI device flag helper functions when assigning or releasing device.
No functional change.
Signed-off-by: Ethan Zhao <ethan.zhao@oracle.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'drivers/xen/xen-pciback')
-rw-r--r-- | drivers/xen/xen-pciback/pci_stub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/xen/xen-pciback/pci_stub.c b/drivers/xen/xen-pciback/pci_stub.c index 259ba2661543..017069a455d4 100644 --- a/drivers/xen/xen-pciback/pci_stub.c +++ b/drivers/xen/xen-pciback/pci_stub.c @@ -133,7 +133,7 @@ static void pcistub_device_release(struct kref *kref) xen_pcibk_config_free_dyn_fields(dev); xen_pcibk_config_free_dev(dev); - dev->dev_flags &= ~PCI_DEV_FLAGS_ASSIGNED; + pci_clear_dev_assigned(dev); pci_dev_put(dev); kfree(psdev); @@ -413,7 +413,7 @@ static int pcistub_init_device(struct pci_dev *dev) dev_dbg(&dev->dev, "reset device\n"); xen_pcibk_reset_device(dev); - dev->dev_flags |= PCI_DEV_FLAGS_ASSIGNED; + pci_set_dev_assigned(dev); return 0; config_release: |