summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpibtn.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-08-05 20:11:33 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-08-05 20:11:33 +0000
commitf48b051e4a3031b3d756062639cae3054a2490d6 (patch)
tree53cd11d14affc0c64095963a16cf7adf2cededee /sys/dev/acpi/acpibtn.c
parente3029935663f89afaf6013c4da558086f83520aa (diff)
lid suspend logic was backwards
Diffstat (limited to 'sys/dev/acpi/acpibtn.c')
-rw-r--r--sys/dev/acpi/acpibtn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpibtn.c b/sys/dev/acpi/acpibtn.c
index 028f5fc0483..739c3a134e5 100644
--- a/sys/dev/acpi/acpibtn.c
+++ b/sys/dev/acpi/acpibtn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpibtn.c,v 1.29 2010/08/05 19:23:06 marco Exp $ */
+/* $OpenBSD: acpibtn.c,v 1.30 2010/08/05 20:11:32 deraadt Exp $ */
/*
* Copyright (c) 2005 Marco Peereboom <marco@openbsd.org>
*
@@ -143,7 +143,7 @@ acpibtn_notify(struct aml_node *node, int notify_type, void *arg)
* _LID method. 0 means the lid is closed and we
* should go to sleep.
*/
- if (acpi_lid_suspend)
+ if (acpi_lid_suspend == 0)
break;
if (aml_evalinteger(sc->sc_acpi, sc->sc_devnode,
"_LID", 0, NULL, &lid))