Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262965AbTKEPxd (ORCPT ); Wed, 5 Nov 2003 10:53:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262982AbTKEPxd (ORCPT ); Wed, 5 Nov 2003 10:53:33 -0500 Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:37076 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id S262965AbTKEPxc (ORCPT ); Wed, 5 Nov 2003 10:53:32 -0500 Date: Wed, 5 Nov 2003 15:53:30 +0000 From: Matthew Wilcox To: acpi-devel@lists.sourceforge.net Cc: linux-kernel@vger.kernel.org Subject: [PATCH] Fix panic-at-boot Message-ID: <20031105155330.GB29259@parcelfarce.linux.theplanet.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1341 Lines: 39 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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/