summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/pci_x86.h
diff options
context:
space:
mode:
authorSinan Kaya <okaya@kernel.org>2018-12-19 22:46:56 +0000
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-12-20 10:19:49 +0100
commit5d32a66541c4683456507481a0944ed2985e75c7 (patch)
tree56eda1da3271a5d0c51e3963e9d868e9f810487c /arch/x86/include/asm/pci_x86.h
parentbd23fac3eaaa8bd79c02a2f139f68ac6424a9a7c (diff)
downloadlinux-0-day-5d32a66541c4683456507481a0944ed2985e75c7.tar.gz
linux-0-day-5d32a66541c4683456507481a0944ed2985e75c7.tar.xz
PCI/ACPI: Allow ACPI to be built without CONFIG_PCI set
We are compiling PCI code today for systems with ACPI and no PCI device present. Remove the useless code and reduce the tight dependency. Signed-off-by: Sinan Kaya <okaya@kernel.org> Acked-by: Bjorn Helgaas <bhelgaas@google.com> # PCI parts Acked-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/x86/include/asm/pci_x86.h')
-rw-r--r--arch/x86/include/asm/pci_x86.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/include/asm/pci_x86.h b/arch/x86/include/asm/pci_x86.h
index 959d618dbb170..73bb404f4d2a2 100644
--- a/arch/x86/include/asm/pci_x86.h
+++ b/arch/x86/include/asm/pci_x86.h
@@ -121,7 +121,14 @@ extern void __init dmi_check_pciprobe(void);
extern void __init dmi_check_skip_isa_align(void);
/* some common used subsys_initcalls */
+#ifdef CONFIG_PCI
extern int __init pci_acpi_init(void);
+#else
+static inline int __init pci_acpi_init(void)
+{
+ return -EINVAL;
+}
+#endif
extern void __init pcibios_irq_init(void);
extern int __init pcibios_init(void);
extern int pci_legacy_init(void);