aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen/xen-pciback/pci_stub.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/xen/xen-pciback/pci_stub.c')
-rw-r--r--drivers/xen/xen-pciback/pci_stub.c4
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)
133 xen_pcibk_config_free_dyn_fields(dev); 133 xen_pcibk_config_free_dyn_fields(dev);
134 xen_pcibk_config_free_dev(dev); 134 xen_pcibk_config_free_dev(dev);
135 135
136 dev->dev_flags &= ~PCI_DEV_FLAGS_ASSIGNED; 136 pci_clear_dev_assigned(dev);
137 pci_dev_put(dev); 137 pci_dev_put(dev);
138 138
139 kfree(psdev); 139 kfree(psdev);
@@ -413,7 +413,7 @@ static int pcistub_init_device(struct pci_dev *dev)
413 dev_dbg(&dev->dev, "reset device\n"); 413 dev_dbg(&dev->dev, "reset device\n");
414 xen_pcibk_reset_device(dev); 414 xen_pcibk_reset_device(dev);
415 415
416 dev->dev_flags |= PCI_DEV_FLAGS_ASSIGNED; 416 pci_set_dev_assigned(dev);
417 return 0; 417 return 0;
418 418
419config_release: 419config_release: