mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04: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 <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Konrad Rzeszutek Wilk <[email protected]> Acked-by: David Vrabel <[email protected]>
This commit is contained in:
parent
ad0d217ca6
commit
be507fd090
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue