From: deraadt Date: Fri, 16 Aug 2024 04:14:27 +0000 (+0000) Subject: delete disabled ACPI-related code in here, this power management is X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=fd042ffdc70d1726d6308c4819514edac16eff53;p=openbsd 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 --- 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 #include -#ifdef __HAVE_ACPI -#include -#include -#include -#include -#include -#endif - #include #include @@ -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; }