PCI: al: Select CONFIG_PCI_ECAM
authorArnd Bergmann <arnd@arndb.de>
Mon, 8 Mar 2021 15:24:46 +0000 (16:24 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 11 Mar 2021 21:07:41 +0000 (15:07 -0600)
Compile-testing this driver without ECAM support results in a link failure:

  ld.lld: error: undefined symbol: pci_ecam_map_bus
  >>> referenced by pcie-al.c
  >>>               pci/controller/dwc/pcie-al.o:(al_pcie_map_bus) in archive drivers/built-in.a

Select CONFIG_ECAM like the other drivers do.

Link: https://lore.kernel.org/r/20210308152501.2135937-1-arnd@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Krzysztof WilczyƄski <kw@linux.com>
drivers/pci/controller/dwc/Kconfig

index 22c5529..f4b589f 100644 (file)
@@ -311,6 +311,7 @@ config PCIE_AL
        depends on OF && (ARM64 || COMPILE_TEST)
        depends on PCI_MSI_IRQ_DOMAIN
        select PCIE_DW_HOST
+       select PCI_ECAM
        help
          Say Y here to enable support of the Amazon's Annapurna Labs PCIe
          controller IP on Amazon SoCs. The PCIe controller uses the DesignWare