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

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

Advertisement

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

Filename:/drivers/acpi/ec.c
Lines Added:4
Lines Deleted:25
Also changed in: (Previous) 2.4.1-pre12  2.4.1-pre11  2.4.1-pre10  2.4.0-ac12  2.4.0-prerelease  2.4.0-test9 
(Following) 2.4.1-ac10  2.4.1-ac11  2.4.1-ac12  2.4.1-ac13  2.4.1-ac14  2.4.1-ac15 

Location
[  2.4.1
  [  drivers
    [  acpi
       o  ec.c

Patch

diff -u --recursive --new-file v2.4.0/linux/drivers/acpi/ec.c linux/drivers/acpi/ec.c
--- v2.4.0/linux/drivers/acpi/ec.c   Fri Dec 29 14:07:21 2000
+++ linux/drivers/acpi/ec.c   Mon Jan 29 10:15:58 2001
@@ -270,25 +270,6 @@
     return_ACPI_STATUS(status);
 }
 
-static ACPI_STATUS 
-ec_space_setup (
-    ACPI_HANDLE                 region_handle,
-    UINT32                      function,
-    void                        *handler_context,
-    void                        **return_context)
-{
-   // TODO: What is this function for?
-   /* 
-    * The ec object is in the handler context and is needed
-    * when calling the ec_space_handler.
-    */
-   *return_context = handler_context;
-
-    return AE_OK;
-}
-
-
-
 
 static void
 ec_query_handler (
@@ -419,8 +400,6 @@
 {
    FUNCTION_TRACE("acpi_ec_region_setup");
 
-   printk("acpi_ec_region_setup\n");
-
    if (function == ACPI_REGION_DEACTIVATE)
    {
       if (*region_context)
@@ -556,10 +535,10 @@
    buf.length = sizeof(obj);
    buf.pointer = &obj;
    if (!ACPI_SUCCESS(acpi_evaluate_object(handle, "_GPE", NULL, &buf))
-      || obj.type != ACPI_TYPE_NUMBER)
+      || obj.type != ACPI_TYPE_INTEGER)
       return AE_OK;
 
-   ec_cxt->gpe_bit = obj.number.value;
+   ec_cxt->gpe_bit = obj.integer.value;
 
    /* determine if we need the Global Lock when accessing */
    buf.length = sizeof(obj);
@@ -568,12 +547,12 @@
    status = acpi_evaluate_object(handle, "_GLK", NULL, &buf);
    if (status == AE_NOT_FOUND)
       ec_cxt->need_global_lock = 0;
-   else if (!ACPI_SUCCESS(status) || obj.type != ACPI_TYPE_NUMBER) {
+   else if (!ACPI_SUCCESS(status) || obj.type != ACPI_TYPE_INTEGER) {
       DEBUG_PRINT(ACPI_ERROR, ("_GLK failed\n"));
       return AE_OK;
    }
 
-   ec_cxt->need_global_lock = obj.number.value;
+   ec_cxt->need_global_lock = obj.integer.value;
 
    printk(KERN_INFO "ACPI: found EC @ (0x%02x,0x%02x,gpe %d GL %d)\n",
       ec_cxt->data_port, ec_cxt->status_port, ec_cxt->gpe_bit,


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