PATCH: allow legacy free hw with no smi cmd port

Alan Cox (alan@lxorguk.ukuu.org.uk)
Mon, 14 Jul 2003 13:17:19 +0100


diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.22-pre5/drivers/acpi/hardware/hwacpi.c linux.22-pre5-ac1/drivers/acpi/hardware/hwacpi.c
--- linux.22-pre5/drivers/acpi/hardware/hwacpi.c 2003-07-14 12:27:34.000000000 +0100
+++ linux.22-pre5-ac1/drivers/acpi/hardware/hwacpi.c 2003-07-07 16:30:46.000000000 +0100
@@ -208,6 +208,10 @@

ACPI_FUNCTION_TRACE ("hw_get_mode");

+ /* If there's no smi_cmd port, then it's ACPI only hw */
+ if (!acpi_gbl_FADT->smi_cmd)
+ return_VALUE (ACPI_SYS_MODE_ACPI);
+
status = acpi_get_register (ACPI_BITREG_SCI_ENABLE, &value, ACPI_MTX_LOCK);
if (ACPI_FAILURE (status)) {
return_VALUE (ACPI_SYS_MODE_LEGACY);
-
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/