patch-2.4.1 linux/drivers/acpi/power.c
Next file: linux/drivers/acpi/resources/rsaddr.c
Previous file: linux/drivers/acpi/parser/psxface.c
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Mon Jan 22 13:23:43 2001
- Orig file:
v2.4.0/linux/drivers/acpi/power.c
- Orig date:
Fri Dec 29 14:07:21 2000
diff -u --recursive --new-file v2.4.0/linux/drivers/acpi/power.c linux/drivers/acpi/power.c
@@ -81,12 +81,12 @@
buf.length = sizeof(obj);
buf.pointer = &obj;
if (!ACPI_SUCCESS(acpi_evaluate_object(ac_handle, "_PSR", NULL, &buf))
- || obj.type != ACPI_TYPE_NUMBER) {
+ || obj.type != ACPI_TYPE_INTEGER) {
p += sprintf(p, "Could not read AC status\n");
goto end;
}
- if (obj.number.value)
+ if (obj.integer.value)
p += sprintf(p, "on-line\n");
else
p += sprintf(p, "off-line\n");
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)