Skip to contentSkip to conversation

ACPI fix for no PCI

Linux-ia64 Jesse Barnes 1 participant 1 message Mar 6, 2003

lore
Share & tools
lore
#0 lore raw

Andy Grover told me this should be posted here. It allows ACPI to compile even with PCI turned off. Patch against 2.5.60.

Thanks,
Jesse

arch/ia64/kernel/acpi.c +2 -1
diff -Naur -X /usr/people/jbarnes/dontdiff linux-2.5.60-ia64-sn/arch/ia64/kernel/acpi.c work-sn2/arch/ia64/kernel/acpi.c
@@ -825,6 +825,7 @@
 /* --------------------------------------------------------------------------
                              PCI Interrupt Routing
    -------------------------------------------------------------------------- */
+#ifdef CONFIG_PCI
 
 int __init
 acpi_get_prt (struct pci_vector_struct **vectors, int *count)
@@ -866,7 +867,7 @@
 	*count = acpi_prt.count;
 	return 0;
 }
-
+#endif
 /* Assume IA64 always use I/O SAPIC */
 
 int __init