mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-13 16:50:05 +00:00
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>
This commit is contained in:
parent
ad0d217ca6
commit
be507fd090
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user