summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ec/google/chromeec/acpi/ec.asl11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl
index a40d0acbc0..67cee27adf 100644
--- a/src/ec/google/chromeec/acpi/ec.asl
+++ b/src/ec/google/chromeec/acpi/ec.asl
@@ -26,6 +26,9 @@ External (\_SB.DPTF.TEVT, MethodObj)
External (\_SB.DPTF.TCHG, DeviceObj)
#endif
External (\_SB.DPTF.TPET, MethodObj)
+#ifndef EC_ENABLE_LID_SWITCH
+External (\_SB.LID0, DeviceObj)
+#endif
Device (EC0)
{
@@ -169,7 +172,9 @@ Device (EC0)
#ifdef EC_ENABLE_LID_SWITCH
Notify (LID0, 0x80)
#else
- Notify (\_SB.LID0, 0x80)
+ If (CondRefOf (\_SB.LID0)) {
+ Notify (\_SB.LID0, 0x80)
+ }
#endif
}
@@ -181,7 +186,9 @@ Device (EC0)
#ifdef EC_ENABLE_LID_SWITCH
Notify (LID0, 0x80)
#else
- Notify (\_SB.LID0, 0x80)
+ If (CondRefOf (\_SB.LID0)) {
+ Notify (\_SB.LID0, 0x80)
+ }
#endif
}