Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.1 /drivers/acpi/power.c

Filename:/drivers/acpi/power.c
Lines Added:2
Lines Deleted:2
Also changed in: (Previous) 2.4.1-pre12  2.4.1-pre11  2.4.1-pre10  2.4.0-ac12  2.4.0-prerelease 
(Following) 2.4.4-ac3  2.4.4-ac4  2.4.4-ac5  2.4.4-ac6  2.4.4-ac8  2.4.4-ac9 

Location
[  2.4.1
  [  drivers
    [  acpi
       o  power.c

Patch

diff -u --recursive --new-file v2.4.0/linux/drivers/acpi/power.c linux/drivers/acpi/power.c
--- v2.4.0/linux/drivers/acpi/power.c   Fri Dec 29 14:07:21 2000
+++ linux/drivers/acpi/power.c   Mon Jan 22 13:23:43 2001
@@ -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");


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.