acpi_pci_*, acpi_hpet: fix building
authorAlexander Polakov <polachok@gmail.com>
Wed, 14 Oct 2009 18:21:55 +0000 (22:21 +0400)
committerAlexander Polakov <polachok@gmail.com>
Wed, 14 Oct 2009 18:21:55 +0000 (22:21 +0400)
sys/dev/acpica5/acpi_hpet.c
sys/dev/acpica5/acpi_pcib_acpi.c
sys/dev/acpica5/acpi_pcib_pci.c

index 9889a93..9ed7e8c 100644 (file)
@@ -177,7 +177,7 @@ acpi_hpet_probe(device_t dev)
 {
        ACPI_FUNCTION_TRACE((char *)(uintptr_t) __func__);
 
-       if (!acpi_enabled("hpet"))
+       if (acpi_disabled("hpet"))
                return ENXIO;
 
        if (!DEV_HPET(dev) &&
index 387257d..13a5ec7 100644 (file)
@@ -121,7 +121,7 @@ acpi_pcib_acpi_probe(device_t dev)
 {
 
     if (acpi_get_type(dev) == ACPI_TYPE_DEVICE &&
-       acpi_enabled("pci") &&
+       acpi_disabled("pci") &&
        acpi_MatchHid(acpi_get_handle(dev), "PNP0A03")) {
        if (pci_cfgregopen() == 0)
                return (ENXIO);
index 4a6007a..cafe57b 100644 (file)
@@ -114,7 +114,7 @@ acpi_pcib_pci_probe(device_t dev)
 {
     if (pci_get_class(dev) != PCIC_BRIDGE ||
        pci_get_subclass(dev) != PCIS_BRIDGE_PCI ||
-       !acpi_enabled("pci"))
+       acpi_disabled("pci"))
        return (ENXIO);
     if (acpi_get_handle(dev) == NULL)
        return (ENXIO);