PCI/portdrv: Factor out Interrupt Message Number lookup
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 20 Oct 2017 13:48:06 +0000 (08:48 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 20 Oct 2017 16:08:28 +0000 (11:08 -0500)
commit3321eafd2a79f15126ebaa82f1b5d7fce89c02cb
treee2072b7a5cc10eb2e61a086d53f7866175fee558
parentb8acfd7c0f88c49dc0089cd40e02040187160f6a
PCI/portdrv: Factor out Interrupt Message Number lookup

Factor out Interrupt Message Number lookup from the MSI/MSI-X interrupt
setup.  One side effect is that we only have to check once to see if we
have enough vectors for all the services.  No functional change intended.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
drivers/pci/pcie/portdrv_core.c