diff options
author | Ethan Zhao <ethan.zhao@oracle.com> | 2014-09-09 10:21:26 +0800 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-09-16 16:18:40 -0600 |
commit | ad0d217ca645477ba30c2f3cf1a5bbb7ef18b1fd (patch) | |
tree | e7ae854942fa8df8538176afd6708963d3100d60 /virt/kvm/assigned-dev.c | |
parent | ce0529843a505d09f5809a7db6288d2f038f64c4 (diff) | |
download | linux-ad0d217ca645477ba30c2f3cf1a5bbb7ef18b1fd.tar.gz linux-ad0d217ca645477ba30c2f3cf1a5bbb7ef18b1fd.tar.bz2 linux-ad0d217ca645477ba30c2f3cf1a5bbb7ef18b1fd.zip |
KVM: 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>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt/kvm/assigned-dev.c')
-rw-r--r-- | virt/kvm/assigned-dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/assigned-dev.c b/virt/kvm/assigned-dev.c index 5819a2708d7e..e05000e200d2 100644 --- a/virt/kvm/assigned-dev.c +++ b/virt/kvm/assigned-dev.c @@ -302,7 +302,7 @@ static void kvm_free_assigned_device(struct kvm *kvm, else pci_restore_state(assigned_dev->dev); - assigned_dev->dev->dev_flags &= ~PCI_DEV_FLAGS_ASSIGNED; + pci_clear_dev_assigned(assigned_dev->dev); pci_release_regions(assigned_dev->dev); pci_disable_device(assigned_dev->dev); |