]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/virtio/virtio_pci_legacy.c
Revert "virtio_pci: don't duplicate the msix_enable flag in struct pci_dev"
[karo-tx-linux.git] / drivers / virtio / virtio_pci_legacy.c
index f7362c5fe18a96a902bc81138b8ea796e03e79d9..5dd01f09608bc852f2cd43413cc9cb1e28831e2d 100644 (file)
@@ -165,7 +165,7 @@ static void del_vq(struct virtqueue *vq)
 
        iowrite16(vq->index, vp_dev->ioaddr + VIRTIO_PCI_QUEUE_SEL);
 
-       if (vp_dev->pci_dev->msix_enabled) {
+       if (vp_dev->msix_enabled) {
                iowrite16(VIRTIO_MSI_NO_VECTOR,
                          vp_dev->ioaddr + VIRTIO_MSI_QUEUE_VECTOR);
                /* Flush the write out to device */