PCI/MSI: Move MSI/MSI-X init to msi.c
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 3 Dec 2020 18:51:08 +0000 (12:51 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 4 Dec 2020 18:08:19 +0000 (12:08 -0600)
commitcbc40d5c33af289548d2481e68a38512102cdd3e
treee6b17682ef0a303726deb150c372841c71214acc
parent695cd09cc9b27ece3315331b5d12195c8b67946b
PCI/MSI: Move MSI/MSI-X init to msi.c

Move pci_msi_setup_pci_dev(), which disables MSI and MSI-X interrupts, from
probe.c to msi.c so it's with all the other MSI code and more consistent
with other capability initialization.  This means we must compile msi.c
always, even without CONFIG_PCI_MSI, so wrap the rest of msi.c in an #ifdef
and adjust the Makefile accordingly.  No functional change intended.

Link: https://lore.kernel.org/r/20201203185110.1583077-2-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
drivers/pci/Makefile
drivers/pci/msi.c
drivers/pci/pci.h
drivers/pci/probe.c