Skip to content

Commit

Permalink
ACPI: osl.c: replace return_ACPI_STATUS with return
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lin Ming authored and Len Brown committed Dec 31, 2008
1 parent 9b02d6e commit 889c78b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions drivers/acpi/osl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
Expand Down
1 change: 0 additions & 1 deletion include/acpi/acglobal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down
2 changes: 2 additions & 0 deletions include/acpi/acpixf.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
#include "actypes.h"
#include "actbl.h"

extern u8 acpi_gbl_permanent_mmap;

/*
* Global interfaces
*/
Expand Down

0 comments on commit 889c78b

Please sign in to comment.