diff options
author | Christoph Hellwig <hch@lst.de> | 2016-11-17 11:43:13 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2016-12-15 23:12:47 +0100 |
commit | fa3a3279354e5f7a13ec16f2c9f5e39124745332 (patch) | |
tree | c8d1016ed45ca19a7836ec59e27158b0453c2ef1 /drivers/virtio/virtio_pci_common.h | |
parent | virtio: clean up handling of request_irq failure (diff) | |
download | linux-fa3a3279354e5f7a13ec16f2c9f5e39124745332.tar.xz linux-fa3a3279354e5f7a13ec16f2c9f5e39124745332.zip |
virtio_pci: use pci_alloc_irq_vectors
This avoids the separate allocation for the msix_entries structures, and
instead allows us to use pci_irq_vector to find a given IRQ vector.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/virtio/virtio_pci_common.h')
-rw-r--r-- | drivers/virtio/virtio_pci_common.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/virtio/virtio_pci_common.h b/drivers/virtio/virtio_pci_common.h index 28263200ed42..b2f666250ae0 100644 --- a/drivers/virtio/virtio_pci_common.h +++ b/drivers/virtio/virtio_pci_common.h @@ -85,7 +85,6 @@ struct virtio_pci_device { /* MSI-X support */ int msix_enabled; int intx_enabled; - struct msix_entry *msix_entries; cpumask_var_t *msix_affinity_masks; /* Name strings for interrupts. This size should be enough, * and I'm too lazy to allocate each name separately. */ |