]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ipr: Use pci_irq_allocate_vectors
authorChristoph Hellwig <hch@lst.de>
Sun, 11 Sep 2016 13:31:24 +0000 (15:31 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Nov 2016 22:29:46 +0000 (17:29 -0500)
commit86ebf3c3c1c03fc54acc8182cfb91569bda80a62
treef5a357809478024aa5af521a8754e62446d93abe
parentc5e9abc526896eaed23d4bc8a8e2384ce81ffb17
scsi: ipr: Use pci_irq_allocate_vectors

Switch the ipr driver to use pci_alloc_irq_vectors.  We need to two
calls to pci_alloc_irq_vectors as ipr only supports multiple MSI-X
vectors, but not multiple MSI vectors.

Otherwise this cleans up a lot of cruft and allows to use a common
request_irq loop for irq types, which happens to only iterate over a
single line in the non MSI-X case.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ipr.c
drivers/scsi/ipr.h