scsi: smartpqi: switch to pci_alloc_irq_vectors
authorChristoph Hellwig <hch@lst.de>
Tue, 1 Nov 2016 14:12:49 +0000 (08:12 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Nov 2016 22:30:00 +0000 (17:30 -0500)
commit5219822687be40d89bfc30d4040f6a3bb6d17d1f
treec13708ecef5210dff09f8c6c2635351775486ad7
parent2d9c5c20c93eacc00642f6ce10ce47f31fa0b6ac
scsi: smartpqi: switch to pci_alloc_irq_vectors

Which cleans up a lot of the MSI-X handling, and allows us to use the
PCI IRQ layer provided vector mapping, which we can then expose to
blk-mq.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Acked-by: Don Brace <don.brace@microsemi.com>
Tested-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/smartpqi/smartpqi.h
drivers/scsi/smartpqi/smartpqi_init.c