Commit 031de3c8 authored by Andy Grover's avatar Andy Grover

ACPI: misc cleanups

parent eb174ad0
...@@ -104,11 +104,13 @@ acpi_ns_root_initialize (void) ...@@ -104,11 +104,13 @@ acpi_ns_root_initialize (void)
status = acpi_os_predefined_override(init_val, &val); status = acpi_os_predefined_override(init_val, &val);
if (ACPI_FAILURE (status)) { if (ACPI_FAILURE (status)) {
ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "Could not override predefined %s\n",
"Could not override predefined %s\n", init_val->name)); init_val->name));
} }
if (val == NULL)
if (!val) {
val = init_val->val; val = init_val->val;
}
/* /*
* Entry requests an initial value, allocate a * Entry requests an initial value, allocate a
......
...@@ -30,21 +30,21 @@ ...@@ -30,21 +30,21 @@
* We put them here because we don't want to duplicate them * We put them here because we don't want to duplicate them
* in the rest of the source code again and again. * in the rest of the source code again and again.
*/ */
#include <acpi/acconfig.h> /* Configuration constants */ #include "acconfig.h" /* Configuration constants */
#include <acpi/platform/acenv.h> /* Target environment specific items */ #include "platform/acenv.h" /* Target environment specific items */
#include <acpi/actypes.h> /* Fundamental common data types */ #include "actypes.h" /* Fundamental common data types */
#include <acpi/acexcep.h> /* ACPI exception codes */ #include "acexcep.h" /* ACPI exception codes */
#include <acpi/acmacros.h> /* C macros */ #include "acmacros.h" /* C macros */
#include <acpi/actbl.h> /* ACPI table definitions */ #include "actbl.h" /* ACPI table definitions */
#include <acpi/aclocal.h> /* Internal data types */ #include "aclocal.h" /* Internal data types */
#include <acpi/acoutput.h> /* Error output and Debug macros */ #include "acoutput.h" /* Error output and Debug macros */
#include <acpi/acpiosxf.h> /* Interfaces to the ACPI-to-OS layer*/ #include "acpiosxf.h" /* Interfaces to the ACPI-to-OS layer*/
#include <acpi/acpixf.h> /* ACPI core subsystem external interfaces */ #include "acpixf.h" /* ACPI core subsystem external interfaces */
#include <acpi/acobject.h> /* ACPI internal object */ #include "acobject.h" /* ACPI internal object */
#include <acpi/acstruct.h> /* Common structures */ #include "acstruct.h" /* Common structures */
#include <acpi/acglobal.h> /* All global variables */ #include "acglobal.h" /* All global variables */
#include <acpi/achware.h> /* Hardware defines and interfaces */ #include "achware.h" /* Hardware defines and interfaces */
#include <acpi/acutils.h> /* Utility interfaces */ #include "acutils.h" /* Utility interfaces */
#endif /* __ACPI_H__ */ #endif /* __ACPI_H__ */
...@@ -95,7 +95,7 @@ acpi_os_get_root_pointer ( ...@@ -95,7 +95,7 @@ acpi_os_get_root_pointer (
acpi_status acpi_status
acpi_os_predefined_override ( acpi_os_predefined_override (
const struct acpi_predefined_names *init_val, const struct acpi_predefined_names *init_val,
acpi_string *new_val); acpi_string *new_val);
acpi_status acpi_status
acpi_os_table_override ( acpi_os_table_override (
......
...@@ -27,8 +27,8 @@ ...@@ -27,8 +27,8 @@
#ifndef __ACXFACE_H__ #ifndef __ACXFACE_H__
#define __ACXFACE_H__ #define __ACXFACE_H__
#include <acpi/actypes.h> #include "actypes.h"
#include <acpi/actbl.h> #include "actbl.h"
/* /*
......
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
/*! [Begin] no source code translation */ /*! [Begin] no source code translation */
#if defined(__linux__) #if defined(__linux__)
#include <acpi/platform/aclinux.h> #include "aclinux.h"
#elif defined(_AED_EFI) #elif defined(_AED_EFI)
#include "acefi.h" #include "acefi.h"
......
...@@ -54,11 +54,11 @@ ...@@ -54,11 +54,11 @@
#include <unistd.h> #include <unistd.h>
#if defined(__ia64__) || defined(__x86_64__) #if defined(__ia64__) || defined(__x86_64__)
#define ACPI_MACHINE_WIDTH 64 #define ACPI_MACHINE_WIDTH 64
#define COMPILER_DEPENDENT_INT64 long #define COMPILER_DEPENDENT_INT64 long
#define COMPILER_DEPENDENT_UINT64 unsigned long #define COMPILER_DEPENDENT_UINT64 unsigned long
#else #else
#define ACPI_MACHINE_WIDTH 32 #define ACPI_MACHINE_WIDTH 32
#define COMPILER_DEPENDENT_INT64 long long #define COMPILER_DEPENDENT_INT64 long long
#define COMPILER_DEPENDENT_UINT64 unsigned long long #define COMPILER_DEPENDENT_UINT64 unsigned long long
#define ACPI_USE_NATIVE_DIVIDE #define ACPI_USE_NATIVE_DIVIDE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment