]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
PCI: Allow building PCIe things without PCIEPORTBUS
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 6 Nov 2019 22:13:43 +0000 (16:13 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 21 Nov 2019 13:52:33 +0000 (07:52 -0600)
Some things in drivers/pci/pcie (aspm.c and ptm.c) do not depend on the
PCIe portdrv, so we should be able to build them even if PCIEPORTBUS is not
selected.  Remove the PCIEPORTBUS guard from building pcie/.

Link: https://lore.kernel.org/r/20191106222420.10216-6-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Andrew Murray <andrew.murray@arm.com>
drivers/pci/Makefile

index 28cdd8c0213ac347f834a4b819c6c4ab0a2cf08d..522d2b974e91bd395f7713301d5c1e39bdc0d48a 100644 (file)
@@ -7,6 +7,8 @@ obj-$(CONFIG_PCI)               += access.o bus.o probe.o host-bridge.o \
                                   pci-sysfs.o rom.o setup-res.o irq.o vpd.o \
                                   setup-bus.o vc.o mmap.o setup-irq.o
 
+obj-$(CONFIG_PCI)              += pcie/
+
 ifdef CONFIG_PCI
 obj-$(CONFIG_PROC_FS)          += proc.o
 obj-$(CONFIG_SYSFS)            += slot.o
@@ -15,7 +17,6 @@ endif
 
 obj-$(CONFIG_OF)               += of.o
 obj-$(CONFIG_PCI_QUIRKS)       += quirks.o
-obj-$(CONFIG_PCIEPORTBUS)      += pcie/
 obj-$(CONFIG_HOTPLUG_PCI)      += hotplug/
 obj-$(CONFIG_PCI_MSI)          += msi.o
 obj-$(CONFIG_PCI_ATS)          += ats.o