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__ */
...@@ -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"
......
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