* [PATCH] Fix panic-at-boot
@ 2003-11-05 15:53 Matthew Wilcox
0 siblings, 0 replies; only message in thread
From: Matthew Wilcox @ 2003-11-05 15:53 UTC (permalink / raw)
To: acpi-devel; +Cc: linux-kernel
This patch fixes a panic-at-boot when ACPI Hotplug PCI is compiled in,
but ACPI is disabled.
Index: drivers/acpi/pci_root.c
===================================================================
RCS file: /var/cvs/linux-2.6/drivers/acpi/pci_root.c,v
retrieving revision 1.1
diff -u -p -r1.1 pci_root.c
--- a/drivers/acpi/pci_root.c 29 Jul 2003 17:01:00 -0000 1.1
+++ b/drivers/acpi/pci_root.c 5 Nov 2003 15:48:28 -0000
@@ -66,7 +66,7 @@ struct acpi_pci_root {
u64 io_tra;
};
-struct list_head acpi_pci_roots;
+static LIST_HEAD(acpi_pci_roots);
static struct acpi_pci_driver *sub_driver;
@@ -374,8 +374,6 @@ static int __init acpi_pci_root_init (vo
acpi_dbg_layer = ACPI_PCI_COMPONENT;
acpi_dbg_level = 0xFFFFFFFF;
*/
-
- INIT_LIST_HEAD(&acpi_pci_roots);
if (acpi_bus_register_driver(&acpi_pci_root_driver) < 0)
return_VALUE(-ENODEV);
--
"It's not Hollywood. War is real, war is primarily not about defeat or
victory, it is about death. I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-11-05 15:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-05 15:53 [PATCH] Fix panic-at-boot Matthew Wilcox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).