From: Arnd Bergmann <arnd@arndb.de>
Date: Tue, 13 Mar 2018 18:23:06 +0000 (+0000)
Subject: PCI: tegra: Add PCI_MSI_IRQ_DOMAIN kconfig dependency
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6de3ff900090a9913cebfdc6e9c6c4b65e96393c;p=linux.git

PCI: tegra: Add PCI_MSI_IRQ_DOMAIN kconfig dependency

Building the tegra PCIe host driver without MSI results in a link
failure:

drivers/pci/host/pci-tegra.o:(.data+0x70): undefined reference to
`pci_msi_unmask_irq'
drivers/pci/host/pci-tegra.o:(.data+0x74): undefined reference to
`pci_msi_mask_irq'

This adds the same dependency that everyone else uses.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
[lorenzo.pieralisi@arm.com: rewrote commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Thierry Reding <treding@nvidia.com>
---

diff --git a/drivers/pci/host/Kconfig b/drivers/pci/host/Kconfig
index dc8a2a175f19d..0d0177ce436cc 100644
--- a/drivers/pci/host/Kconfig
+++ b/drivers/pci/host/Kconfig
@@ -38,6 +38,7 @@ config PCI_FTPCI100
 config PCI_TEGRA
 	bool "NVIDIA Tegra PCIe controller"
 	depends on ARCH_TEGRA
+	depends on PCI_MSI_IRQ_DOMAIN
 	help
 	  Say Y here if you want support for the PCIe host controller found
 	  on NVIDIA Tegra SoCs.