PCI/ACPI: Allow ACPI to be built without CONFIG_PCI set
[sfrench/cifs-2.6.git] / arch / x86 / include / asm / pci_x86.h
index 959d618dbb1707fcdda5bd8c17c6082c498a9046..73bb404f4d2a23c2e1e01afdc30a132553672b04 100644 (file)
@@ -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);