diff options
author | marks <marks@FreeBSD.org> | 2007-05-08 14:31:49 +0000 |
---|---|---|
committer | marks <marks@FreeBSD.org> | 2007-05-08 14:31:49 +0000 |
commit | 99bfdc548a5093b3e2a573df1f917f1671f05f11 (patch) | |
tree | 5414a9c005c0a7eaecf5d10f55788e2f3dafb4d8 /sys/dev/acpica | |
parent | 7a83edd79bf4a84d393967cebf18ce1c602e296d (diff) | |
download | FreeBSD-src-99bfdc548a5093b3e2a573df1f917f1671f05f11.zip FreeBSD-src-99bfdc548a5093b3e2a573df1f917f1671f05f11.tar.gz |
Set the debug.acpi.acpi_ca_version sysctl even if ACPI support is not
available.
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r-- | sys/dev/acpica/acpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index c0724bc..bd7faab 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -331,14 +331,14 @@ acpi_identify(driver_t *driver, device_t parent) if (device_find_child(parent, "acpi", 0) != NULL) return_VOID; + snprintf(acpi_ca_version, sizeof(acpi_ca_version), "%x", ACPI_CA_VERSION); + /* Initialize root tables. */ if (ACPI_FAILURE(acpi_Startup())) { printf("ACPI: Try disabling either ACPI or apic support.\n"); return_VOID; } - snprintf(acpi_ca_version, sizeof(acpi_ca_version), "%x", ACPI_CA_VERSION); - /* Attach the actual ACPI device. */ if ((child = BUS_ADD_CHILD(parent, 10, "acpi", 0)) == NULL) { device_printf(parent, "device_identify failed\n"); |