PCI/portdrv: Squash into portdrv.c
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 19 Oct 2022 20:41:25 +0000 (15:41 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 24 Oct 2022 19:57:30 +0000 (14:57 -0500)
commita1ccd3d911382f68753033c6adcf69663c2a9fc5
tree31b44d0506a75ca39b77694e02bac37c592a94e2
parent9abf2313adc1ca1b6180c508c25f22f9395cc780
PCI/portdrv: Squash into portdrv.c

Squash portdrv_core.c and portdrv_pci.c into portdrv.c to make it easier to
find things.  The whole thing is less than 1000 lines, and it's a pain to
bounce back and forth between two files.

Several portdrv_core.c functions were non-static because they were
referenced from portdrv_pci.c.  Make them static since they're now all in
portdrv.c.

No functional change intended.

Link: https://lore.kernel.org/r/20221019204127.44463-2-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
drivers/pci/pcie/Makefile
drivers/pci/pcie/portdrv.c [moved from drivers/pci/pcie/portdrv_core.c with 70% similarity]
drivers/pci/pcie/portdrv.h
drivers/pci/pcie/portdrv_pci.c [deleted file]