summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2024-08-16 04:14:28 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2024-08-16 04:14:28 +0000
commit5ea8b674b96937a3d39f88776cadf190a02fa796 (patch)
tree795d93df05f1cb000e2e8ca4d5bd521a4b0e932f /sys/dev/ic
parent1d3e89b344d408dbb38b3cf506ac345d0afab51e (diff)
delete disabled ACPI-related code in here, this power management is
done at a different level, and nothing needs to be done here ok kettenis
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/dwiic.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/sys/dev/ic/dwiic.c b/sys/dev/ic/dwiic.c
index 13663ba78e6..01cc470b42b 100644
--- a/sys/dev/ic/dwiic.c
+++ b/sys/dev/ic/dwiic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dwiic.c,v 1.15 2023/08/29 12:09:40 kettenis Exp $ */
+/* $OpenBSD: dwiic.c,v 1.16 2024/08/16 04:14:27 deraadt Exp $ */
/*
* Synopsys DesignWare I2C controller
*
@@ -21,14 +21,6 @@
#include <sys/systm.h>
#include <sys/kernel.h>
-#ifdef __HAVE_ACPI
-#include <dev/acpi/acpireg.h>
-#include <dev/acpi/acpivar.h>
-#include <dev/acpi/acpidev.h>
-#include <dev/acpi/amltypes.h>
-#include <dev/acpi/dsdt.h>
-#endif
-
#include <dev/i2c/i2cvar.h>
#include <dev/ic/dwiicvar.h>
@@ -50,19 +42,9 @@ dwiic_activate(struct device *self, int act)
/* disable interrupts */
dwiic_write(sc, DW_IC_INTR_MASK, 0);
dwiic_read(sc, DW_IC_CLR_INTR);
-
-#if notyet
- /* power down the controller */
- dwiic_acpi_power(sc, 0);
-#endif
break;
case DVACT_WAKEUP:
-#if notyet
- /* power up the controller */
- dwiic_acpi_power(sc, 1);
-#endif
dwiic_init(sc);
-
break;
}