]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ACPI: osl.c: replace return_ACPI_STATUS with return
authorLin Ming <ming.m.lin@intel.com>
Wed, 31 Dec 2008 01:23:57 +0000 (09:23 +0800)
committerLen Brown <len.brown@intel.com>
Wed, 31 Dec 2008 06:02:05 +0000 (01:02 -0500)
return_ACPI_STATUS is an internal acpica function, replace it with return.
acpi_gbl_permanent_mmap moved from acglobal.h to acpixf.h for external use

Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/osl.c
include/acpi/acglobal.h
include/acpi/acpixf.h

index c8111424dcb88b8a8cdc0e401f025a79149dfaa1..6729a4992f2bd73543a561f36454f037db01298d 100644 (file)
@@ -726,7 +726,7 @@ static acpi_status __acpi_os_execute(acpi_execute_type type,
 
        dpc = kmalloc(sizeof(struct acpi_os_dpc), GFP_ATOMIC);
        if (!dpc)
-               return_ACPI_STATUS(AE_NO_MEMORY);
+               return AE_NO_MEMORY;
 
        dpc->function = function;
        dpc->context = context;
@@ -747,7 +747,7 @@ static acpi_status __acpi_os_execute(acpi_execute_type type,
                status = AE_ERROR;
                kfree(dpc);
        }
-       return_ACPI_STATUS(status);
+       return status;
 }
 
 acpi_status acpi_os_execute(acpi_execute_type type,
index 77d73a498bfba0f3ae0a795fc0ecbc4f8f15d6e6..90cc82067c727d293f8a3b37e04c6b7553027aad 100644 (file)
@@ -141,7 +141,6 @@ ACPI_EXTERN u32 acpi_gbl_trace_flags;
 ACPI_EXTERN struct acpi_internal_rsdt acpi_gbl_root_table_list;
 ACPI_EXTERN struct acpi_table_fadt acpi_gbl_FADT;
 ACPI_EXTERN struct acpi_table_facs *acpi_gbl_FACS;
-extern u8 acpi_gbl_permanent_mmap;
 
 /* These addresses are calculated from FADT address values */
 
index c9b903f3625abe594ef8d18e0357d5ee3ce42466..be0aa5eb0ba7d3adfd708dc848ceda5f11ddf674 100644 (file)
@@ -48,6 +48,8 @@
 #include "actypes.h"
 #include "actbl.h"
 
+extern u8 acpi_gbl_permanent_mmap;
+
 /*
  * Global interfaces
  */