summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/ec_commands.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index 084191c9ca..ea2f9a6213 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -8,7 +8,7 @@
#ifndef __CROS_EC_EC_COMMANDS_H
#define __CROS_EC_EC_COMMANDS_H
-#ifndef __ACPI__
+#if !defined(__ACPI__) && !defined(__KERNEL__)
#include <stdint.h>
#endif