From 370027a6c3af53742a1a85e6e3a372f67f785596 Mon Sep 17 00:00:00 2001 From: Sepherosa Ziehau Date: Sat, 4 Jul 2009 12:19:45 +0800 Subject: [PATCH] pci: Don't test whether acpi module is loaded; acpi-pci is not ready to go yet --- sys/bus/pci/i386/legacy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/bus/pci/i386/legacy.c b/sys/bus/pci/i386/legacy.c index 60645cb35a..21bebc5f08 100644 --- a/sys/bus/pci/i386/legacy.c +++ b/sys/bus/pci/i386/legacy.c @@ -115,6 +115,7 @@ legacy_identify(driver_t *driver, device_t parent) static int legacy_probe(device_t dev) { +#ifdef ACPI_ENABLE_PCI device_t acpi; /* @@ -123,6 +124,7 @@ legacy_probe(device_t dev) acpi = devclass_get_device(devclass_find("acpi"), 0); if (acpi != NULL && device_is_alive(acpi)) return (ENXIO); +#endif /* ACPI_ENABLE_PCI */ device_set_desc(dev, "legacy system"); device_quiet(dev); return (0); -- 2.11.4.GIT