Commit 848fd5f3 authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Linus Torvalds

[PATCH] Fix panic-at-boot

This fixes a panic-at-boot when ACPI Hotplug PCI is compiled in, but
ACPI is disabled.  It just makes sure that the list is properly
initialized statically instead of depending on runtime initialization
that may or may not happen.
parent 434f8122
......@@ -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;
......@@ -375,8 +375,6 @@ static int __init acpi_pci_root_init (void)
acpi_dbg_level = 0xFFFFFFFF;
*/
INIT_LIST_HEAD(&acpi_pci_roots);
if (acpi_bus_register_driver(&acpi_pci_root_driver) < 0)
return_VALUE(-ENODEV);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment