PCI: iproc: Apply quirk_paxc_bridge() for module as well as built-in
authorWei Liu <wei.liu@kernel.org>
Wed, 11 Dec 2019 17:45:11 +0000 (17:45 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 12 Dec 2019 23:21:36 +0000 (17:21 -0600)
commit574f29036fce385e28617547955dd6911d375025
tree90ebec5ee287aa41ef7d29fb0082dcb948cb9e4a
parente42617b825f8073569da76dc4510bfa019b1c35a
PCI: iproc: Apply quirk_paxc_bridge() for module as well as built-in

Previously quirk_paxc_bridge() was applied when the iproc driver was
built-in, but not when it was compiled as a module.

This happened because it was under #ifdef CONFIG_PCIE_IPROC_PLATFORM:
PCIE_IPROC_PLATFORM=y causes CONFIG_PCIE_IPROC_PLATFORM to be defined, but
PCIE_IPROC_PLATFORM=m causes CONFIG_PCIE_IPROC_PLATFORM_MODULE to be
defined.

Move quirk_paxc_bridge() to pcie-iproc.c and drop the #ifdef so the quirk
is always applied, whether iproc is built-in or a module.

[bhelgaas: commit log, move to pcie-iproc.c, not pcie-iproc-platform.c]
Link: https://lore.kernel.org/r/20191211174511.89713-1-wei.liu@kernel.org
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/controller/pcie-iproc.c
drivers/pci/quirks.c